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

Michael Stucki michael at typo3.org
Fri Jul 13 18:02:10 CEST 2007

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
> olly

Use a newsreader! Check out

More information about the TYPO3-team-core mailing list