Suggest Wizard ajax response ignores columnsOverrides
We override the records fields with different configuration.
That works on Rendering the BE-Form, but isn't taken into account while processing the ajax of suggest wizard. He only takes a look at the TCA, without the overwrites and is not usable. The only way to prevent insertions of invalid records is to disable the wizard via columnsOverrides.
Configuration is attached as screenshots, here is the example for copy and paste:
'columnsOverrides' => [ 'records' => [ 'config' => [ 'minitems' => 1, 'foreign_table' => 'fe_users', 'allowed' => 'fe_users', 'wizards' => [ 'suggest' => [ 'default' => [ 'pidList' => '2', 'searchCondition' => 'pid = 2', 'searchWholePhrase' => 1, 'additionalSearchFields' => 'username, city, country', ], ], ], ], ], ],
For 7.6.9 the following line is used to fetch configuration:
$fieldConfig = $GLOBALS['TCA'][$table]['columns'][$field]['config']; $this->overrideFieldNameAndConfigurationForFlexform($table, $field, $row, $fieldConfig); $wizardConfig = $fieldConfig['wizards']['suggest']; $queryTables = $this->getTablesToQueryFromFieldConfiguration($fieldConfig); $whereClause = $this->getWhereClause($fieldConfig);
So the configuration is ignored.
#5 Updated by Daniel Siepmann 9 months ago
Otherwise the type can be fetched from DB, in assumption that the record was already saved.
#10 Updated by Gerrit Code Review 4 months ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/59444