[BUGFIX] Page quickedit: Show correct page in BE after deleting a CE 27/45427/2
authorMichael Oehlhof <typo3@oehlhof.de>
Mon, 21 Dec 2015 21:19:36 +0000 (22:19 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 23 Dec 2015 19:43:36 +0000 (20:43 +0100)
Resolves: #72354
Releases: master, 7.6
Change-Id: I7e3060611c6e2cf020b00f2130eebec77f4c1ef9
Reviewed-on: https://review.typo3.org/45427
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Controller/PageLayoutController.php

index 223ab9d..124325a 100755 (executable)
@@ -1193,7 +1193,7 @@ class PageLayoutController
                 if ($this->deleteButton) {
                     $deleteButton = $this->buttonBar->makeLinkButton()
                         ->setHref('#')
-                        ->setOnClick('return deleteRecord(' . GeneralUtility::quoteJSvalue($this->eRParts[0]) . ',' . GeneralUtility::quoteJSvalue($this->eRParts[1]) . ',' . GeneralUtility::quoteJSvalue(GeneralUtility::getIndpEnv('SCRIPT_NAME') . '?id=' . $this->id) . ');')
+                        ->setOnClick('return deleteRecord(' . GeneralUtility::quoteJSvalue($this->eRParts[0]) . ',' . GeneralUtility::quoteJSvalue($this->eRParts[1]) . ',' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl($this->moduleName) . '&id=' . $this->id) . ');')
                         ->setTitle($lang->getLL('deleteItem'))
                         ->setIcon($this->iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL));
                     $this->buttonBar->addButton($deleteButton, ButtonBar::BUTTON_POSITION_LEFT, 4);