Fixed bug #12441: IRRE - Cannot add new elements on second level of nesting
authorOliver Hader <oliver.hader@typo3.org>
Thu, 5 Nov 2009 15:34:04 +0000 (15:34 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 5 Nov 2009 15:34:04 +0000 (15:34 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6332 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms_inline.php

index bfc5f3f..ce62c37 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-05  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #12441: IRRE - Cannot add new elements on second level of nesting
+
 2009-11-04  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #12452: Fatal error in install tool DB-compare with multiplyDbFieldSize > 1
index 0867a13..7c3acf6 100644 (file)
@@ -1754,15 +1754,21 @@ class t3lib_TCEforms_inline {
         * @return      string          The path of identifiers
         */
        function getStructurePath($structureDepth = -1) {
+               $structureLevels = array();
                $structureCount = count($this->inlineStructure['stable']);
                if ($structureDepth < 0 || $structureDepth > $structureCount) $structureDepth = $structureCount;
 
                for ($i = 1; $i <= $structureDepth; $i++) {
-                       $current = $this->getStructureLevel(-$i);
-                       $string = $this->getStructureItemName($current, self::Disposal_AttributeId) . $string;
+                       array_unshift(
+                               $structureLevels,
+                               $this->getStructureItemName(
+                                       $this->getStructureLevel(-$i),
+                                       self::Disposal_AttributeId
+                               )
+                       );
                }
 
-               return $string;
+               return implode(self::Structure_Separator, $structureLevels);
        }