[BUGFIX] Catch DatabaseRecordException when editing record with deleted relation
Editing a record with a deleted related record leads to an uncaught DatabaseRecordException. This patch catches the exception and ignores such records, but logs a warning. Due to possible errors occurring with certain DBMS (e.g. MySQL strict) columns may require a default value now in TCA. Resolves: #83412 Releases: master, 8.7 Change-Id: I5adaf385443350ce245dd83da6e5f1a16d9c9afb Reviewed-on: https://review.typo3.org/55197 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Reiner Teubner <rteubner@me.com> Tested-by:
Reiner Teubner <rteubner@me.com> Reviewed-by:
Andreas Wolf <andreas.wolf@typo3.org> Tested-by:
Andreas Wolf <andreas.wolf@typo3.org>
Showing
- typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractDatabaseRecordProvider.php 5 additions, 1 deletion.../Form/FormDataProvider/AbstractDatabaseRecordProvider.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php 28 additions, 2 deletions...ysext/backend/Classes/Form/FormDataProvider/TcaInline.php
Please register or sign in to comment