From 00264e219c839bb8829cafa88e1523991500785c Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 12 Jan 2010 23:52:10 +0000 Subject: [PATCH] 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 --- code/LeftAndMain.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index c9efbb68..24b04276 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -328,10 +328,12 @@ class LeftAndMain extends Controller { return $title; } - public function show($params) { + public function show() { + $params = $this->getURLParams(); if($params['ID']) $this->setCurrentPageID($params['ID']); - if(isset($params['OtherID'])) + if(isset($params['OtherID'])) { Session::set('currentMember', $params['OtherID']); + } if(Director::is_ajax()) { SSViewer::setOption('rewriteHashlinks', false);