Actions
Bug #56080
closedTitle field gets lost after using addToAllTCAtypes
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-02-18
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
When using \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( 'sys_category' , 'tx_myfield' , '' , 'after:description' ); the standard title-field of the system category gets lost, because the 't' of the fieldname is being removed.
The bug seems to be the first line in TYPO3\CMS\Core\Utility\ExtensionManagementUtility::executePositionedStringInsertion (line 565). After replacing
"$list = $newList = trim($list, ', \\t\\n\\r\\0\\x0B');"
with
"$list = $newList = trim($list, ', \t\n\r\0\x0B');"
it's working again.
I don't think we need a double backslash at the second trim() parameter as you can see here: http://www.php.net/manual/fr/function.trim.php
Actions