[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
Wed Jul 11 17:01:38 CEST 2007


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


olly
-- 
Oliver Hader
http://inpublica.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005948_trunk.patch
Type: text/x-patch
Size: 519 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070711/1a4a7a70/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005948_41.patch
Type: text/x-patch
Size: 919 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070711/1a4a7a70/attachment-0001.bin 


More information about the TYPO3-team-core mailing list