[BUGFIX] Catch DatabaseRecordException when editing record with deleted relation 50/55450/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 24 Jan 2018 15:50:17 +0000 (16:50 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sat, 27 Jan 2018 18:34:52 +0000 (19:34 +0100)
commit10d598d2c5887c17d68f56be2f6828cba7df02ed
tree0747f26e211d89ed5f26ad31120a97cea0cef603
parentbe287e7837f25f5b83d82a320d2f2afe9e1aa63f
[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/55450
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>
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php