[BUGFIX] Rendering inline TCEforms without AJAX is broken 04/12904/4
authorAlexander Jahn <a.jahn@immowelt.de>
Thu, 19 Jul 2012 10:13:32 +0000 (12:13 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 2 Feb 2014 21:26:13 +0000 (22:26 +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/12904
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/backend/Classes/Form/Element/InlineElement.php

index 787fd84..d259303 100644 (file)
@@ -434,7 +434,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'] . '" />';