Fixed bug #17297: The column headers of the grid view are swapped when there is no...
authorErnesto Baschny <ernst@cron-it.de>
Wed, 26 Jan 2011 19:03:52 +0000 (19:03 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Wed, 26 Jan 2011 19:03:52 +0000 (19:03 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10341 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/layout/class.tx_cms_layout.php

index 0902f4d..290e72c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
 
 2011-01-26  Ernesto Baschny  <ernst@cron-it.de>
 
+       * Fixed bug #17297: The column headers of the grid view are swapped when there is no column header available (Thanks to Jo Hasenau)
        * Prepared NEWS.txt for release of 4.5.0
        * Fixed issue #17333: Rename "Update Wizard" into "Upgrade Wizard"
        * Merged Linkvalidator 1.0.0
index d86e376..bf97198 100755 (executable)
@@ -631,10 +631,10 @@ class tx_cms_layout extends recordList {
                                                        // If not, a new header without any buttons will be generated.
                                                        if (isset($columnConfig['colPos']) && $head[$columnKey]) {
                                                                $grid .= $head[$columnKey] . $content[$columnKey];
-                                                       } else if ($head[$columnKey]) {
-                                                               $grid .= $this->tt_content_drawColHeader($GLOBALS['LANG']->getLL('notAssigned'), '', '');
-                                                       } else {
+                                                       } else if ($columnConfig['colPos']) {
                                                                $grid .= $this->tt_content_drawColHeader($GLOBALS['LANG']->getLL('noAccess'), '', '');
+                                                       } else {
+                                                               $grid .= $this->tt_content_drawColHeader($GLOBALS['LANG']->getLL('notAssigned'), '', '');
                                                        }
 
                                                        $grid .= '</td>';