Project

General

Profile

Actions

Bug #76661

closed

Suggest Wizard ajax response ignores columnsOverrides

Added by Daniel Siepmann over 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2016-06-16
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

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

sysext/backend/Classes/Form/Wizard/SuggestWizard.php

So the configuration is ignored.


Files

Screen Shot 2016-06-16 at 15.04.24.png (31.9 KB) Screen Shot 2016-06-16 at 15.04.24.png TYPO3 default records configuration Daniel Siepmann, 2016-06-16 15:09
Screen Shot 2016-06-16 at 15.04.27.png (37.2 KB) Screen Shot 2016-06-16 at 15.04.27.png Overwrite of records configuration Daniel Siepmann, 2016-06-16 15:09
Screenshot from 2020-04-07 10-06-25.png (72 KB) Screenshot from 2020-04-07 10-06-25.png Daniel Siepmann, 2020-04-07 11:02
Screenshot from 2020-04-07 10-06-36.png (130 KB) Screenshot from 2020-04-07 10-06-36.png Daniel Siepmann, 2020-04-07 11:02

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #86876: TCA columnsOverrides ignores default valueClosed2018-11-07

Actions
Actions

Also available in: Atom PDF