#88377Page tree delete does not perform error checking
Description
Running TYPO3 9.5.7.
Deleting a page via the page tree does not seem to perform error checking in this particular scenario, the page tree just reloads without the deletion being performed and without showing an error message:
- Create a page (lets call it page A) with a subpage.
- Make sure that in user settings -> Edit and Advanced functions -> “Recursive Delete(!): Allow ALL subpages to be deleted when deleting a page” is disabled. Should be default for new users.
- Right click on page A in the page tree and choose “Delete”.
Expected behavior: An error message is shown.
Actual behavior: The page tree reloads without showing any error message. An error message is only shown when navigating to a new backend site (“Attempt to delete page which has subpages”).
This bug may not be exclusive to this specific scenario when deleting pages via the context menu, I haven’t checked whether other errors are properly handled.
This seems to be a regression. In TYPO3 6.2 in the same scenario, an error message notification pops up:
> Exception
> [1.0.-1]: [newlog()] Attempt to delete page which has subpages