Bug #45550
closedHaving colPos 0 and columns not assigned multiplies elements in page module view
100%
Description
When using a backend layout with columns that should not be used at all, you can just leave the colPos value blank having the page module show some placeholder with the label not assigned.
Despite the fact that there actually should be a label for this column available (see #25157), the problem is, that any of the "not assigned" columns will show the content of the column with colPos 0. The cause is a missing check for colPos being no empty string. This leads to multiplied content elements in the page module view of these layouts, since the elements are visible in any column having !colPos (which is true for colPos 0 as well).
Files
Updated by Jo Hasenau almost 12 years ago
- File Fix_for__45550.diff Fix_for__45550.diff added
Attached patch should solve the problem.
Updated by Gerrit Code Review almost 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at https://review.typo3.org/18347
Updated by Gerrit Code Review almost 12 years ago
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18349
Updated by Gerrit Code Review almost 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18349
Updated by Alexander Opitz over 11 years ago
Hi, maybe you can change the lines in your patch to
if (isset($columnConfig['colPos']) && $columnConfig['colPos'] !== '' && $head[$columnKey]) { $grid .= $head[$columnKey] . $content[$columnKey]; } elseif ($columnConfig['colPos'] !== '') { $grid .= $this->tt_content_drawColHeader($GLOBALS['LANG']->getLL('noAccess'), '', ''); } elseif ($columnConfig['name'] !== '') { $grid .= $this->tt_content_drawColHeader($columnConfig['name'], '', ''); } else { $grid .= $this->tt_content_drawColHeader($GLOBALS['LANG']->getLL('notAssigned'), '', ''); }
then you also got the name as label on such columns as you want in #25157
Updated by Gerrit Code Review over 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18349
Updated by Gerrit Code Review about 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18349
Updated by Gerrit Code Review about 11 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18349
Updated by Gerrit Code Review about 11 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18349
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25386
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-0 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25387
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_4-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25388
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_4-5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25389
Updated by Georg Ringer about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c372d650fe1efad90d15ef86909c7cd1ab6fdc02.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed