[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>
Showing
- typo3/sysext/backend/Classes/Form/Exception/DatabaseRecordException.php 45 additions, 0 deletions...ackend/Classes/Form/Exception/DatabaseRecordException.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractDatabaseRecordProvider.php 4 additions, 1 deletion.../Form/FormDataProvider/AbstractDatabaseRecordProvider.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php 30 additions, 3 deletions...ysext/backend/Classes/Form/FormDataProvider/TcaInline.php
- typo3/sysext/backend/Resources/Private/Language/locallang.xlf 6 additions, 0 deletions...3/sysext/backend/Resources/Private/Language/locallang.xlf
- typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js 1 addition, 1 deletion...sext/backend/Resources/Public/JavaScript/jsfunc.inline.js
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseEditRowTest.php 21 additions, 0 deletions.../Tests/Unit/Form/FormDataProvider/DatabaseEditRowTest.php
Please register or sign in to comment