Index: t3lib/class.t3lib_tceforms_inline.php =================================================================== --- t3lib/class.t3lib_tceforms_inline.php (révision 9189) +++ t3lib/class.t3lib_tceforms_inline.php (copie de travail) @@ -387,6 +387,8 @@ $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: @@ -434,9 +436,7 @@ if ($config['renderFieldsOnly']) { $out = $fields . $combination; } else { - // Put the current level also to the dynNestedStack of TCEforms: - $this->fObj->pushToDynNestedStack('inline', $objectId); - // set the record container with data for output + // set the record container with data for output $out = '
' . $fields . $combination . '
'; $header = $this->renderForeignRecordHeader($parentUid, $foreign_table, $rec, $config, $isVirtualRecord); $out = '
' . $header . '
' . $out; @@ -444,9 +444,10 @@ $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; }