[TYPO3-core] RFC: #8191: IRRE crashes somehow with MM-Tables

Peter Kuehn [wmdb] peter.kuehn at wmdb.de
Thu Oct 29 14:27:05 CET 2009


Hi yall!,

this is a SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=8191

Branches: trunk, 4.2, 4.1

Problem:
Other than documented in the core API documentation 
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.2.0/view/4/2/#id4431730 
and on the wiki 
http://wiki.typo3.org/index.php/Inline_Relational_Record_Editing_1:n 
(end of page) configuring a field in TCA with

       'config' => Array(
         'type' => 'inline',
         'foreign_table' => 'person',
         'MM' => 'association_person_mm',
         'maxitems' => 10,
         'appearance' => Array(
           'collapseAll' => 1,
           'expandSingle' => 1,
         ),
       ),

does not work:
- Parent- and child-records are created but no entry in the MM-table.
- Trying to create more than one child at once additionally leads to the 
error msg "these fields are not properly updated in database..." 
presented to the user.

Solution:
adding the missing functionality to 
t3lib_tcemain::checkValue_inline_processDBdata()

Notes:
Olly says in his note to the ticket "The MM way is not the preferred way 
of storing information with IRRE".
I agree on that at least for new projects, but I think it would be great 
to have the ability to completely switch an existing relation from 
old-school

       'config' => Array(
         'type' => 'select',
         'foreign_table' => 'person',
         'MM' => 'association_person_mm',
       ),

to IRRE by simply changing the type to 'inline' without having to change 
the structure and content of the database (which is often not possible 
for various reasons).

gRTz
pekue






-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 8191_43trunk.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091029/d4a5256c/attachment.asc>


More information about the TYPO3-team-core mailing list