Actions
Bug #57824
closedPalette fields are not wrapped, because --linebreak-- values are removed
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
Actions