Issue Bug Closed

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

Hendrik Becker 04/11/14, 12:17 updated 10/02/18, 11:58

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.

Reviews 2