From 7b4e6eebad121e4081faaa64e2018654970772c6 Mon Sep 17 00:00:00 2001 From: Andreas Fernandez Date: Wed, 28 Oct 2015 23:14:30 +0100 Subject: [PATCH] [BUGFIX] Repair EditDocumentController in FE edit scope This patch repairs the EditDocumentController when called by FE edit. The main issue was that JavaScripts depends on global objects in ``top`` which are set by BackendController that is only called when one acts in the fully bootstrapped backend view. Resolves: #68819 Releases: master Change-Id: I5635b32b3dada3a73d7534936e41cd94d3d10b56 Reviewed-on: https://review.typo3.org/44342 Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn Reviewed-by: Morton Jonuschat Tested-by: Morton Jonuschat --- Classes/FrontendEditPanel.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index 14679f3..382c112 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -231,7 +231,8 @@ class FrontendEditPanel array( 'edit[' . $table . '][' . $editUid . ']' => 'edit', 'columnsOnly' => $fieldList, - 'noView' => $nV + 'noView' => $nV, + 'feEdit' => 1 ) ) . $addUrlParamStr; $icon = $this->editPanelLinkWrap_doWrap($iconImg, $url, 'content-link'); @@ -268,7 +269,7 @@ class FrontendEditPanel $nV = GeneralUtility::_GP('ADMCMD_view') ? 1 : 0; if ($cmd == 'edit') { $rParts = explode(':', $currentRecord); - $out = $this->editPanelLinkWrap_doWrap($string, BackendUtility::getModuleUrl('record_edit', array('edit[' . $rParts[0] . '][' . $rParts[1] . ']' => 'edit', 'noView=' . $nV)), $currentRecord); + $out = $this->editPanelLinkWrap_doWrap($string, BackendUtility::getModuleUrl('record_edit', array('edit[' . $rParts[0] . '][' . $rParts[1] . ']' => 'edit', 'noView' => $nV, 'feEdit' => 1)), $currentRecord); } elseif ($cmd == 'new') { $rParts = explode(':', $currentRecord); if ($rParts[0] == 'pages') {