Issue Bug Closed

#76692Wrong check for showitem fields in ExtensionManagementUtility::addToAllTCAtypes

Anonymous 06/19/16, 13:48 updated 06/23/16, 23:45

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;
}

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.