#57824Palette fields are not wrapped, because --linebreak-- values are removed
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.