Project

General

Profile

Actions

Bug #45550

closed

Having colPos 0 and columns not assigned multiplies elements in page module view

Added by Jo Hasenau about 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Backend User Interface
Target version:
Start date:
2013-02-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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

Fix_for__45550.diff (2.29 KB) Fix_for__45550.diff Jo Hasenau, 2013-02-17 17:20

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #25157: Page module + backend layout - title of unassigned columnsClosed2011-02-24

Actions
Actions #1

Updated by Jo Hasenau about 11 years ago

Attached patch should solve the problem.

Actions #2

Updated by Georg Ringer about 11 years ago

do you wanna push that go gerrit?

Actions #3

Updated by Gerrit Code Review about 11 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

Actions #4

Updated by Gerrit Code Review about 11 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18349

Actions #5

Updated by Gerrit Code Review about 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18349

Actions #6

Updated by Alexander Opitz about 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

Actions #7

Updated by Gerrit Code Review almost 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

Actions #8

Updated by Gerrit Code Review over 10 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18349

Actions #9

Updated by Gerrit Code Review over 10 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18349

Actions #10

Updated by Gerrit Code Review over 10 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18349

Actions #11

Updated by Gerrit Code Review over 10 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

Actions #12

Updated by Gerrit Code Review over 10 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

Actions #13

Updated by Gerrit Code Review over 10 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

Actions #14

Updated by Gerrit Code Review over 10 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

Actions #15

Updated by Georg Ringer over 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #16

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF