[BUGFIX] Exception editing inline mm with deleted child child 59/47959/5
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 28 Apr 2016 17:09:04 +0000 (19:09 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 29 Apr 2016 11:36:03 +0000 (13:36 +0200)
commit5ccdeb32d3bfc1d94e40a8b9881bb048bbf72a1f
tree54edd9cdfeb5a415b7e321a40d9a8bd39ba469d3
parent93d3a9a3d4ab86e1dc2d5684b1da06cfa18ee750
[BUGFIX] Exception editing inline mm with deleted child child

Have an inline m:m record and delete one child child that has an
intermediate record pointing to it. Opening the parent throws
a DatabaseRecordException.
The patch extends this exception to add tableName and uid, then
catches the exception in the inline data provider, creates a
nice error message as flash message and continues displaying record.

Change-Id: I1792716b4e5454b11499cb2ba684bac403b3f13d
Resolves: #71719
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/47959
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/Form/Exception/DatabaseRecordException.php
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractDatabaseRecordProvider.php
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php
typo3/sysext/backend/Resources/Private/Language/locallang.xlf
typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseEditRowTest.php