Actions
Bug #89902
openTCEFORM does not override child tca of an element
Status:
New
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2019-12-09
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
TsConfig TCA inline overrideChildTca
Complexity:
medium
Is Regression:
Sprint Focus:
Description
Hi,
Overriding child tca of an element via TsConfig is not working. Methods *PageTsConfig() in the TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider do not validate the parent field configuration which is available in $result.
Here is a sample of the current code:
protected function removeItemsByKeepItemsPageTsConfig(array $result, $fieldName, array $items) { $table = $result['tableName']; if (!isset($result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems']) || !is_string($result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['keepItems']) ) { return $items; } ...
Regards
CJ
Actions