Actions
Bug #76692
closedWrong check for showitem fields in ExtensionManagementUtility::addToAllTCAtypes
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-06-19
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
At adding of new field to TCA it is possible, that the field won't added, because if one of the existing field contains partial the new field name, it will be ignored.
ex: If an existing field named "something_else_hello" and i wan't add field named "hello", it woul'd be ignored.
The strpos in this check are incorrect:
// skip if fields were already added
if (!isset($typeDetails['showitem']) || strpos($typeDetails['showitem'], $newFieldsString) !== false) {
continue;
}
Actions