[BUGFIX] Refactored ElementInfo missed one table 00/22200/2
authorErnesto Baschny <ernst@cron-it.de>
Thu, 11 Jul 2013 09:48:12 +0000 (11:48 +0200)
committerFelix Kopp <felix-source@phorax.com>
Thu, 11 Jul 2013 11:37:41 +0000 (13:37 +0200)
Resolves: #49889
Related: #49164
Releases: 6.2
Change-Id: I09276b37134f3f781e28ac098596966f7866ec04
Reviewed-on: https://review.typo3.org/22200
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Felix Kopp
Tested-by: Felix Kopp
typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php

index 1a4bdfc..e086997 100644 (file)
@@ -547,7 +547,7 @@ class ElementInformationController {
                // Compile information for title tag:
                $infoData = array();
                if (count($rows)) {
-                       $infoData[] = '<tr class="t3-row-header">' .
+                       $infoDataHeader = '<tr class="t3-row-header">' .
                                        '<td>&nbsp;</td>' .
                                        '<td>' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:show_item.php.field') . '</td>' .
                                        '<td>' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:show_item.php.flexpointer') . '</td>' .
@@ -560,7 +560,7 @@ class ElementInformationController {
                }
                foreach ($rows as $row) {
                        $actions = $this->getRecordActions($row['ref_table'], $row['ref_uid']);
-                       $infoData[] = '<tr>' .
+                       $infoData[] = '<tr class="db_list_normal">' .
                                        '<td style="white-space:nowrap;">' . $actions . '</td>' .
                                        '<td>' . htmlspecialchars($this->getLabelForTableColumn($table, $row['field'])) . '</td>' .
                                        '<td>' . htmlspecialchars($row['flexpointer']) . '</td>' .
@@ -577,8 +577,10 @@ class ElementInformationController {
                }
 
                return '<table border="0" cellpadding="0" cellspacing="0" class="typo3-dblist">' .
+                               '<thead>' . $infoDataHeader . '</thead>' .
+                               '<tbody>' .
                                implode('', $infoData) .
-                               '</table>';
+                               '</tbody></table>';
        }
 
        /**