Index: t3lib/class.t3lib_tceforms_inline.php =================================================================== --- t3lib/class.t3lib_tceforms_inline.php (révision 8744) +++ t3lib/class.t3lib_tceforms_inline.php (copie de travail) @@ -387,8 +387,6 @@ $nameObject = $this->inlineNames['object']; $appendFormFieldNames = '['.$foreign_table.']['.$rec['uid'].']'; $objectId = $nameObject . self::Structure_Separator . $foreign_table . self::Structure_Separator . $rec['uid']; - // Put the current level also to the dynNestedStack of TCEforms: - $this->fObj->pushToDynNestedStack('inline', $objectId); if (!$isVirtualRecord) { // Get configuration: @@ -436,7 +434,9 @@ if ($config['renderFieldsOnly']) { $out = $fields . $combination; } else { - // set the record container with data for output + // Put the current level also to the dynNestedStack of TCEforms: + $this->fObj->pushToDynNestedStack('inline', $objectId); + // set the record container with data for output $out = '
' . $fields . $combination . '
'; $header = $this->renderForeignRecordHeader($parentUid, $foreign_table, $rec, $config, $isVirtualRecord); $out = '
' . $header . '
' . $out; @@ -444,10 +444,9 @@ $classMSIE = ($this->fObj->clientInfo['BROWSER']=='msie' && $this->fObj->clientInfo['VERSION'] < 8 ? 'MSIE' : ''); $class = 'inlineDiv' . $classMSIE . ($isNewRecord ? ' inlineIsNewRecord' : ''); $out = '
' . $out . '
'; + // Remove the current level also from the dynNestedStack of TCEforms: + $this->fObj->popFromDynNestedStack(); } - // Remove the current level also from the dynNestedStack of TCEforms: - $this->fObj->popFromDynNestedStack(); - return $out; }