Fixed bug #6581: Fatal error in TCEForms: Fatal error: Cannot use string offset as...
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 29 Oct 2007 08:35:29 +0000 (08:35 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 29 Oct 2007 08:35:29 +0000 (08:35 +0000)
Fixed bug #6565: T3DataStructure with sheet references will not show sheetTitle,sheetDescription and sheetShortDescr
Fixed bug #5347: Flexforms dosen't resolve sheets
Fixed bug #3969: Missing sheets inclusion in flexforms?

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1@2634 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms.php

index 131d49a..82bc86f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-10-29     Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug #6581: Fatal error in TCEForms: Fatal error: Cannot use string offset as an array
+       * Fixed bug #6565: T3DataStructure with sheet references will not show sheetTitle,sheetDescription and sheetShortDescr
+       * Fixed bug #5347: Flexforms dosen't resolve sheets
+       * Fixed bug #3969: Missing sheets inclusion in flexforms?
+
 2007-10-27  Ingmar Schlecht  <ingmar@typo3.org>
 
        * Fixed bug #1940: "OPEN DOCUMENTS" causes 404 error (Thanks to Christian Trabold)
index b828fac..319aaac 100755 (executable)
@@ -2214,7 +2214,6 @@ class t3lib_TCEforms      {
 
                                $tabParts = array();
                                foreach ($tabsToTraverse as $sheet)     {
-                                       $sheetCfg = $dataStructArray['sheets'][$sheet];
                                        list ($dataStruct, $sheet) = t3lib_div::resolveSheetDefInDS($dataStructArray,$sheet);
 
                                                // Render sheet:
@@ -2237,15 +2236,13 @@ class t3lib_TCEforms    {
                                                                );
                                                $sheetContent= '<table border="0" cellpadding="1" cellspacing="1" class="typo3-TCEforms-flexForm">'.implode('',$tRows).'</table>';
 
-                       #                       $item = '<div style=" position:absolute;">'.$item.'</div>';
-                                               //visibility:hidden;
                                        } else $sheetContent='Data Structure ERROR: No ROOT element found for sheet "'.$sheet.'".';
 
                                                // Add to tab:
                                        $tabParts[] = array(
-                                               'label' => ($sheetCfg['ROOT']['TCEforms']['sheetTitle'] ? $this->sL($sheetCfg['ROOT']['TCEforms']['sheetTitle']) : $sheet),
-                                               'description' => ($sheetCfg['ROOT']['TCEforms']['sheetDescription'] ? $this->sL($sheetCfg['ROOT']['TCEforms']['sheetDescription']) : ''),
-                                               'linkTitle' => ($sheetCfg['ROOT']['TCEforms']['sheetShortDescr'] ? $this->sL($sheetCfg['ROOT']['TCEforms']['sheetShortDescr']) : ''),
+                                               'label' => ($dataStruct['ROOT']['TCEforms']['sheetTitle'] ? $this->sL($dataStruct['ROOT']['TCEforms']['sheetTitle']) : $sheet),
+                                               'description' => ($dataStruct['ROOT']['TCEforms']['sheetDescription'] ? $this->sL($dataStruct['ROOT']['TCEforms']['sheetDescription']) : ''),
+                                               'linkTitle' => ($dataStruct['ROOT']['TCEforms']['sheetShortDescr'] ? $this->sL($dataStruct['ROOT']['TCEforms']['sheetShortDescr']) : ''),
                                                'content' => $sheetContent
                                        );
                                }