[BUGFIX] Catch exception editing record with deleted relation 52/55752/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 24 Jan 2018 15:50:17 +0000 (16:50 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 28 Feb 2018 13:53:17 +0000 (14:53 +0100)
commitc5b7dbbc1d8776eca95478a0e5b0d25e759b1193
treebc3f8506188e600522092dd01010a323a1cd613c
parent211edf64669ed221d1103103a9a5281a4301b57b
[BUGFIX] Catch exception 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, 7.6
Change-Id: I5adaf385443350ce245dd83da6e5f1a16d9c9afb
Reviewed-on: https://review.typo3.org/55752
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Sascha Rademacher <sascha.rademacher+typo3@gmail.com>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php