mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: Fix highlighting of incorrect page when loading a page in the
admin section via URL (from r87320) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96779 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b14404922d
commit
00264e219c
@ -328,10 +328,12 @@ class LeftAndMain extends Controller {
|
|||||||
return $title;
|
return $title;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function show($params) {
|
public function show() {
|
||||||
|
$params = $this->getURLParams();
|
||||||
if($params['ID']) $this->setCurrentPageID($params['ID']);
|
if($params['ID']) $this->setCurrentPageID($params['ID']);
|
||||||
if(isset($params['OtherID']))
|
if(isset($params['OtherID'])) {
|
||||||
Session::set('currentMember', $params['OtherID']);
|
Session::set('currentMember', $params['OtherID']);
|
||||||
|
}
|
||||||
|
|
||||||
if(Director::is_ajax()) {
|
if(Director::is_ajax()) {
|
||||||
SSViewer::setOption('rewriteHashlinks', false);
|
SSViewer::setOption('rewriteHashlinks', false);
|
||||||
|
Loading…
Reference in New Issue
Block a user