[TYPO3-core] RFC: Bug 5948: IRRE - Parent record is not shown after saving the first time to a table on a TYPO3 system

Oliver Hader oh at inpublica.de
Fri Jul 13 19:38:03 CEST 2007


thanks for testing! Since this is like a no-brainer but in IRRE context,
I committed it to subversion.

Committed to SVN:
* TYPO3_4-1 (rev. 2408)
* Trunk (rev. 2409)


Michael Stucki schrieb:
> Tested the Trunk version of your patch. Works fine, +1!
> - michael
> Oliver Hader wrote:
>> This is a SVN patch request.
>> Problem:
>> Imagine you have two tables tx_myext_parent and tx_myext_child and these
>> tables are "fresh" or were truncated before.
>> If you create your first parent record with some children and save the
>> parent record (not save&close), the correctly created parent record will
>> not be shown.
>> The reason is in alt_doc.php. A check should prevent from showing newly
>> created child records because the parent was initially edited. The new
>> child records are memorized in TCEmain's array "newRelatedIDs".
>> Unfortunately this array is filled with the new uid of a child record
>> but with the name of the parent record - and that's wrong.
>> Solution:
>> Use the name of the child table (foreign_table) instead of the name of
>> the parent table.
>> Comments:
>> This patch fixes the behaviour Wolfgang found while testing RFC 5913.
>> A patch for the 4.1 branch and one for Trunk are attached.
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=5948
>> Branches: TYPO3_4-1 & Trunk
Oliver Hader

More information about the TYPO3-team-core mailing list