Issue Feature Closed

#18610$back_path is not passed to t3lib_BEfunc::editOnClick from t3lib_positionmap

Rens Admiraal 04/12/08, 00:06 updated 07/17/09, 20:08

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</plugin>

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.