mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-11-24 23:26:09 +01:00
[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 <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de> Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
This commit is contained in:
parent
4e5dc904ba
commit
7b4e6eebad
1 changed files with 3 additions and 2 deletions
|
@ -231,7 +231,8 @@ class FrontendEditPanel
|
||||||
array(
|
array(
|
||||||
'edit[' . $table . '][' . $editUid . ']' => 'edit',
|
'edit[' . $table . '][' . $editUid . ']' => 'edit',
|
||||||
'columnsOnly' => $fieldList,
|
'columnsOnly' => $fieldList,
|
||||||
'noView' => $nV
|
'noView' => $nV,
|
||||||
|
'feEdit' => 1
|
||||||
)
|
)
|
||||||
) . $addUrlParamStr;
|
) . $addUrlParamStr;
|
||||||
$icon = $this->editPanelLinkWrap_doWrap($iconImg, $url, 'content-link');
|
$icon = $this->editPanelLinkWrap_doWrap($iconImg, $url, 'content-link');
|
||||||
|
@ -268,7 +269,7 @@ class FrontendEditPanel
|
||||||
$nV = GeneralUtility::_GP('ADMCMD_view') ? 1 : 0;
|
$nV = GeneralUtility::_GP('ADMCMD_view') ? 1 : 0;
|
||||||
if ($cmd == 'edit') {
|
if ($cmd == 'edit') {
|
||||||
$rParts = explode(':', $currentRecord);
|
$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') {
|
} elseif ($cmd == 'new') {
|
||||||
$rParts = explode(':', $currentRecord);
|
$rParts = explode(':', $currentRecord);
|
||||||
if ($rParts[0] == 'pages') {
|
if ($rParts[0] == 'pages') {
|
||||||
|
|
Loading…
Reference in a new issue