[BUGFIX] Apply default values before processing datamap
By creating new records the EditDocumentController did not take the default values fetched via GET / Post variables into account. This led to multiple issues when defining columns to be readOnly, disabled or hideForNonAdmins as the values are then stored in defVals parameter but never added to the final datamap. The default values are now being added to the Datahandler prior to process_datamap call. Resolves: #92119 Resolves: #88456 Resolves: #75514 Releases: master, 10.4 Change-Id: I0975dfd2417711813e1701247e8b68d8805c890b Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65536 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Loek Hilgersom <loek@netcoop.nl> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Loek Hilgersom <loek@netcoop.nl> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/backend/Classes/Controller/EditDocumentController.php 6 additions, 0 deletions...ext/backend/Classes/Controller/EditDocumentController.php
- typo3/sysext/backend/Tests/Functional/Controller/EditDocumentControllerTest.php 150 additions, 0 deletions...ests/Functional/Controller/EditDocumentControllerTest.php
Please register or sign in to comment