Actions
Feature #18610
closed$back_path is not passed to t3lib_BEfunc::editOnClick from t3lib_positionmap
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-04-12
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.0
Tags:
Complexity:
Sprint Focus:
Description
The $back_path is passed empty, so when you use the t3lib_positionmap class to create a new page wizard, it refers to <plugin dir>alt_doc.php
By changing to onClickEvent function to the code below the reference is ok
function onClickEvent($pid,$newPagePID) {
$TSconfigProp = $this->getModConfig($newPagePID);
if ($TSconfigProp['overrideWithExtension']) {
if (t3lib_extMgm::isLoaded($TSconfigProp['overrideWithExtension'])) {
$onclick = "window.location.href='".t3lib_extMgm::extRelPath($TSconfigProp['overrideWithExtension']).'mod1/index.php?cmd=crPage&positionPid='.$pid."';";
return $onclick;
}
}
$params='&edit[pages]['.$pid.']=new&returnNewPageId=1';
return t3lib_BEfunc::editOnClick($params,$this->backPath,$this->R_URI);
}
(issue imported from #M8102)
Actions