Project

General

Profile

Actions

Bug #57824

closed

Palette fields are not wrapped, because --linebreak-- values are removed

Added by Hendrik Becker over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extension Manager
Target version:
Start date:
2014-04-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

A statement like this in ext_tables.php:

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('pages', 'myPalette', 'tx_myext_myfield1, --linebreak--, tx_myext_myfield2, --linebreak--, tx_myext_myfield2, --linebreak--, tx_myext_myfield3');

is not interpreted correctly. The method \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::removeDuplicatesForInsertion() removes all duplicated fields, including the "--linebreak--"s on line 643:

$insertionList = implode(', ', array_unique($insertionListParts));

Only the first "--linebreak--" is kept.


Files

patch-1.patch (1.78 KB) patch-1.patch Christian Ludwig, 2014-11-10 22:59
patch-2.patch (1.75 KB) patch-2.patch Christian Ludwig, 2014-11-10 23:02

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #65480: TYPO3 6.2.10 Flexform: Values of section elements are not displayedClosedNicole Cordes2015-03-03

Actions
Actions

Also available in: Atom PDF