Issue Bug Closed

#56080Title field gets lost after using addToAllTCAtypes

Dominik Weber 02/18/14, 14:01 updated 10/02/18, 12:02

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

Reviews 1