Project

General

Profile

Actions

Bug #56080

closed

Title field gets lost after using addToAllTCAtypes

Added by Dominik Weber about 10 years ago. Updated over 5 years ago.

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


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #55932: addToAllTCAtypes inserts string twiceClosed2014-02-12

Actions
Has duplicate TYPO3 Core - Bug #56283: TCA::addFieldsToPallette removes field from listClosed2014-02-25

Actions
Has duplicate TYPO3 Core - Bug #56342: ExtensionManagementUtility::executePositionedStringInsertion() cuts of some charactersClosed2014-02-26

Actions
Actions

Also available in: Atom PDF