[BUGFIX] Exception editing inline mm with deleted child child 69/47969/2
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:44:35 +0000 (13:44 +0200)
commit83735bb205a202166b446f9b3749af6e4de90ba6
tree3465e072e49d008eb1bffdceb81b1bb0a6b3d24c
parent787546a1a37ea34d7ab9311091a46bcb181893e2
[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/47969
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