[TASK] Hide tables with hideTable in record overview 91/41691/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sun, 19 Jul 2015 07:33:45 +0000 (09:33 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Sun, 19 Jul 2015 09:10:06 +0000 (11:10 +0200)
The record overview (info module > page tree overview)
should hide tables which are defined as hidden.

Furthermore a font tag is removed.

Change-Id: I9ca5248943f2d0705649481fef3251db2c20fbd2
Resolves: #68360
Releases: master
Reviewed-on: http://review.typo3.org/41691
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Tested-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index bbeec54..a6b37ac 100644 (file)
@@ -982,7 +982,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                foreach ($fieldArr as $field) {
                        switch ($field) {
                                case 'title':
-                                       $red = $this->plusPages[$row['uid']] ? '<font color="red"><strong>+&nbsp;</strong></font>' : '';
+                                       $red = $this->plusPages[$row['uid']] ? '<span class="text-danger"><strong>+</strong></span>' : '';
                                        $pTitle = htmlspecialchars(BackendUtility::getProcessedValue('pages', $field, $row[$field], 20));
                                        if ($red) {
                                                $pTitle = '<a href="'
@@ -1833,7 +1833,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                // Traverse table names and set them in allowedTableNames array IF they can be read-accessed by the user.
                if (is_array($tableNames)) {
                        foreach ($tableNames as $k => $v) {
-                               if ($this->getBackendUser()->check('tables_select', $k)) {
+                               if (!$GLOBALS['TCA'][$k]['ctrl']['hideTable'] && $this->getBackendUser()->check('tables_select', $k)) {
                                        $allowedTableNames['table_' . $k] = $k;
                                }
                        }