[BUGFIX] Re-validate changed fields only
Probably since ever, FormEngine validates the whole form when a field changed or an IRRE item got removed. This patch introduces the following changes: - only fields affected by the `change` event get validated - FormEngineValidation.validate() accepts an optional argument to define the container whose fields get validated. If omitted, the whole form is validated. Resolves: #93046 Releases: master, 10.4 Change-Id: I48d2f597c88815ebc0374bb02cf0aed6ac4086fe Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67094 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Richard Haeser <richard@richardhaeser.com> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Richard Haeser <richard@richardhaeser.com>
Showing
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Container/InlineControlContainer.ts 5 additions, 5 deletions...TypeScript/FormEngine/Container/InlineControlContainer.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/AbstractSortableSelectItems.ts 1 addition, 1 deletion...eScript/FormEngine/Element/AbstractSortableSelectItems.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/InputDateTimeElement.ts 3 additions, 3 deletions...lic/TypeScript/FormEngine/Element/InputDateTimeElement.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngineFlexForm.ts 5 additions, 4 deletions...backend/Resources/Public/TypeScript/FormEngineFlexForm.ts
- Build/types/TYPO3/index.d.ts 3 additions, 2 deletionsBuild/types/TYPO3/index.d.ts
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js 1 addition, 1 deletion.../sysext/backend/Resources/Public/JavaScript/FormEngine.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Container/InlineControlContainer.js 1 addition, 1 deletion...JavaScript/FormEngine/Container/InlineControlContainer.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/AbstractSortableSelectItems.js 1 addition, 1 deletion...aScript/FormEngine/Element/AbstractSortableSelectItems.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/InputDateTimeElement.js 1 addition, 1 deletion...lic/JavaScript/FormEngine/Element/InputDateTimeElement.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/SelectTree.js 1 addition, 1 deletion...ources/Public/JavaScript/FormEngine/Element/SelectTree.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngineFlexForm.js 1 addition, 1 deletion...backend/Resources/Public/JavaScript/FormEngineFlexForm.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngineValidation.js 38 additions, 25 deletions...ckend/Resources/Public/JavaScript/FormEngineValidation.js
- typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.tbe_editor.js 6 additions, 1 deletion.../backend/Resources/Public/JavaScript/jsfunc.tbe_editor.js
- typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php 1 addition, 1 deletion...ext/rte_ckeditor/Classes/Form/Element/RichTextElement.php
Please register or sign in to comment