[BUGFIX] Catch DatabaseRecordException when editing record with deleted relation 97/55197/8
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 22 Dec 2017 10:35:05 +0000 (11:35 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sat, 27 Jan 2018 11:10:46 +0000 (12:10 +0100)
commitedfe775e9bc460dfe06219e839773e54d2c4a17a
tree45f3254445d188f26c4f76c9ff0fe23f766b960b
parentbe68bd766cdef0555feb50bbb9910a1002d2952a
[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>
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractDatabaseRecordProvider.php
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php