[BUGFIX] Rendering inline TCEforms without AJAX is broken 80/27280/2
authorAlexander Jahn <a.jahn@immowelt.de>
Thu, 19 Jul 2012 10:13:32 +0000 (12:13 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 20 Feb 2014 21:12:47 +0000 (22:12 +0100)
When loading tt_content as an inline record WITHOUT using AJAX,
some additional broken fields are rendered.

Change-Id: Ia5aaec79d0fb7c3266ea4f3a0c04d65b1af4b201
Fixes: #39048
Releases: 6.2, 6.1
Reviewed-on: https://review.typo3.org/27280
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/backend/Classes/Form/Element/InlineElement.php

index beebb58..197a8f2 100644 (file)
@@ -427,7 +427,10 @@ class InlineElement {
                        } else {
                                // Set additional field for processing for saving
                                $fields .= '<input type="hidden" name="' . $this->prependCmdFieldNames . $appendFormFieldNames . '[delete]" value="1" disabled="disabled" />';
-                               if (!$isExpanded && !empty($GLOBALS['TCA'][$foreign_table]['ctrl']['enablecolumns']['disabled'])) {
+                               if (!$isExpanded
+                                       && !empty($GLOBALS['TCA'][$foreign_table]['ctrl']['enablecolumns']['disabled'])
+                                       && $ajaxLoad
+                               ) {
                                        $checked = !empty($rec['hidden']) ? ' checked="checked"' : '';
                                        $fields .= '<input type="checkbox" name="' . $this->prependFormFieldNames . $appendFormFieldNames . '[hidden]_0" value="1"' . $checked . ' />';
                                        $fields .= '<input type="input" name="' . $this->prependFormFieldNames . $appendFormFieldNames . '[hidden]" value="' . $rec['hidden'] . '" />';
@@ -2447,4 +2450,4 @@ class InlineElement {
 }
 
 
-?>
\ No newline at end of file
+?>