| @@ 222-228 (lines=7) @@ | ||
| 219 | continue; |
|
| 220 | } |
|
| 221 | foreach ($tableDefinition['types'] as $typeName => $typeArray) { |
|
| 222 | if (!isset($typeArray['showitem']) || !is_string($typeArray['showitem']) || strpos($typeArray['showitem'], ';') === false) { |
|
| 223 | // Continue directly if no semicolon is found |
|
| 224 | continue; |
|
| 225 | } |
|
| 226 | $itemList = GeneralUtility::trimExplode(',', $typeArray['showitem'], true); |
|
| 227 | $newFieldStrings = []; |
|
| 228 | foreach ($itemList as $fieldString) { |
|
| 229 | $fieldString = rtrim($fieldString, ';'); |
|
| 230 | // Unpack the field definition, migrate and remove as much as possible |
|
| 231 | // Keep empty parameters in trimExplode here (third parameter FALSE), so position is not changed |
|
| @@ 399-405 (lines=7) @@ | ||
| 396 | continue; |
|
| 397 | } |
|
| 398 | foreach ($tableDefinition['types'] as $typeName => $typeArray) { |
|
| 399 | if ( |
|
| 400 | !isset($typeArray['showitem']) |
|
| 401 | || !is_string($typeArray['showitem']) |
|
| 402 | || strpos($typeArray['showitem'], ';') === false // no field parameters |
|
| 403 | ) { |
|
| 404 | continue; |
|
| 405 | } |
|
| 406 | $itemList = GeneralUtility::trimExplode(',', $typeArray['showitem'], true); |
|
| 407 | $newFieldStrings = []; |
|
| 408 | foreach ($itemList as $fieldString) { |
|
| @@ 407-409 (lines=3) @@ | ||
| 404 | // Iterate through all types and search for the field that defines the palette to be extended |
|
| 405 | foreach ($GLOBALS['TCA'][$table]['types'] as $typeName => $typeArray) { |
|
| 406 | // Continue if types has no showitem at all or if requested field is not in it |
|
| 407 | if (!isset($typeArray['showitem']) || strpos($typeArray['showitem'], $field) === false) { |
|
| 408 | continue; |
|
| 409 | } |
|
| 410 | $fieldArrayWithOptions = GeneralUtility::trimExplode(',', $typeArray['showitem']); |
|
| 411 | // Find the field we're handling |
|
| 412 | $newFieldStringArray = []; |
|