|
@@ 2440-2444 (lines=5) @@
|
| 2437 |
|
// or accidentally. In any case we keep the new config and skip the migration. |
| 2438 |
|
continue; |
| 2439 |
|
} |
| 2440 |
|
if (isset($fieldConfig['config']['foreign_types']) && is_array($fieldConfig['config']['foreign_types'])) { |
| 2441 |
|
$fieldConfig['config']['overrideChildTca']['types'] = $fieldConfig['config']['foreign_types']; |
| 2442 |
|
unset($fieldConfig['config']['foreign_types']); |
| 2443 |
|
$this->messages[] = 'The \'foreign_types\' property from TCA ' . $table . '[\'types\'][\'' . $typeName . '\'][\'columnOverrides\'][\'' . $fieldName . '\'][\'config\'] and has been migrated to ' . $table . '[\'types\'][\'' . $typeName . '\'][\'columnOverrides\'][\'' . $fieldName . '\'][\'config\'][\'overrideChildTca\'][\'types\']'; |
| 2444 |
|
} |
| 2445 |
|
if (isset($fieldConfig['config']['foreign_selector_fieldTcaOverride']) && is_array($fieldConfig['config']['foreign_selector_fieldTcaOverride'])) { |
| 2446 |
|
$foreignSelectorFieldName = ''; |
| 2447 |
|
if (isset($fieldConfig['config']['foreign_selector']) && is_string($fieldConfig['config']['foreign_selector'])) { |
|
@@ 2506-2509 (lines=4) @@
|
| 2503 |
|
} |
| 2504 |
|
if (isset($fieldConfig['config']['foreign_record_defaults']) && is_array($fieldConfig['config']['foreign_record_defaults'])) { |
| 2505 |
|
foreach ($fieldConfig['config']['foreign_record_defaults'] as $childFieldName => $defaultValue) { |
| 2506 |
|
if (!isset($fieldConfig['config']['overrideChildTca']['columns'][$childFieldName]['config']['default'])) { |
| 2507 |
|
$fieldConfig['config']['overrideChildTca']['columns'][$childFieldName]['config']['default'] = $defaultValue; |
| 2508 |
|
$this->messages[] = 'The \'foreign_record_defaults\' property from TCA ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\'][\'' . $childFieldName . '\'] and has been migrated to ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\'][\'overrideChildTca\'][\'columns\'][\'' . $childFieldName . '\'][\'config\'][\'default\']'; |
| 2509 |
|
} |
| 2510 |
|
} |
| 2511 |
|
unset($fieldConfig['config']['foreign_record_defaults']); |
| 2512 |
|
} |