Bug #94050
Updated by Daniel Kempf over 3 years ago
In a backend form there are several fields configured by TCA. Some of them are mandatory. Also there are some IRRE fields for adding relations to other tables. In case of adding a new IRRE relation it does kind of deactivate the mandatory validation although some mandatory fields are not filled in. It would be better not to reload form on changes as long as not all mandatory fields are filled in. As additional note, the tca of the inline related record has field properties: 'onChange' => 'reload' and 'eval' => 'required'. Example: <pre> 'starttype' => [ 'onChange' => 'reload', 'label' => 'LLL:EXT:example/Resources/Private/Language/locallang_db.xlf:tx_example.starttype', 'LLL:EXT:zhaw_continuing_education/Resources/Private/Language/locallang_db.xlf:tx_zhawcontinuingeducation_domain_model_start.starttype', 'config' => [ 'type' => 'select', 'renderType' => 'selectSingle', 'items' => [ ['LLL:EXT:example/Resources/Private/Language/locallang_db.xlf:tx_example.starttype.please_select',-1], ['LLL:EXT:zhaw_continuing_education/Resources/Private/Language/locallang_db.xlf:tx_zhawcontinuingeducation_domain_model_start.starttype.please_select',-1], ['LLL:EXT:example/Resources/Private/Language/locallang_db.xlf:tx_example.starttype.date',1], ['LLL:EXT:zhaw_continuing_education/Resources/Private/Language/locallang_db.xlf:tx_zhawcontinuingeducation_domain_model_start.starttype.date',1], ['LLL:EXT:example/Resources/Private/Language/locallang_db.xlf:tx_example.starttype.on_request',2], ['LLL:EXT:zhaw_continuing_education/Resources/Private/Language/locallang_db.xlf:tx_zhawcontinuingeducation_domain_model_start.starttype.on_request',2], ['LLL:EXT:example/Resources/Private/Language/locallang_db.xlf:tx_example.starttype.continuously',3], ['LLL:EXT:zhaw_continuing_education/Resources/Private/Language/locallang_db.xlf:tx_zhawcontinuingeducation_domain_model_start.starttype.continuously',3], ], 'eval' => 'required', ], ], </pre>