[BUGFIX] IRRE hide/unhide broken in master
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_tceforms_inline.php
index c36c013..7d0804d 100644 (file)
@@ -394,6 +394,11 @@ class t3lib_TCEforms_inline {
                        } else {
                                        // set additional field for processing for saving
                                $fields .= '<input type="hidden" name="' . $this->prependCmdFieldNames . $appendFormFieldNames . '[delete]" value="1" disabled="disabled" />';
+                               if(!$isExpanded) {
+                                       $checked = ($rec['hidden'] == 1) ? ' 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'].'" />';
+                               }
                        }
                                // if this record should be shown collapsed
                        if (!$isExpanded) {