Fixed bug #5948: IRRE - Parent record is not shown after saving the first time to...
authorOliver Hader <oliver.hader@typo3.org>
Fri, 13 Jul 2007 17:34:48 +0000 (17:34 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 13 Jul 2007 17:34:48 +0000 (17:34 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1@2408 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index bd960ca..9954bfc 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2007-07-13  Oliver Hader  <oh@inpublica.de>
 
        * Fixed bug #5913: RTEhtmlarea not correctly displayed in IRRE child form-fields and tabs (continuance of bug #5177)
+       * Fixed bug #5948: IRRE - Parent record is not shown after saving the first time to a table on a TYPO3 system
 
 2007-07-11  Oliver Hader  <oh@inpublica.de>
 
index f136ab9..f9a3da3 100755 (executable)
@@ -4314,12 +4314,13 @@ $this->log($table,$id,6,0,0,'Stage raised...',30,array('comment'=>$comment,'stag
 
                                        // Replace relations to NEW...-IDs in values:
                                if(is_array($valueArray)) {
+                                       $foreign_table = $tcaFieldConf['foreign_table'];
                                        foreach($valueArray as $key => $value) {
                                                if(strpos($value, 'NEW') !== false) {
                                                                // fetch the proper uid as integer for the NEW...-ID
                                                        $valueArray[$key] = $this->substNEWwithIDs[$value];
-                                                               // set a hint that this was a new child record
-                                                       $this->newRelatedIDs[$table][] = $valueArray[$key];
+                                                               // Set a hint that this was a new child record:
+                                                       $this->newRelatedIDs[$foreign_table][] = $valueArray[$key];
                                                }
                                        }
                                        $remapAction['args'][$remapAction['pos']['valueArray']] = $valueArray;