From ad7c4432550762bbd7aedf9f2a81eeedcf4bd701 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 30 May 2012 16:04:51 +0200 Subject: [PATCH] ENHANCEMENT Saving tab state for CMSPagesController --- code/controllers/CMSPagesController.php | 7 +++++++ templates/Includes/CMSPagesController_Content.ss | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/code/controllers/CMSPagesController.php b/code/controllers/CMSPagesController.php index 62180d60..5f401d7a 100644 --- a/code/controllers/CMSPagesController.php +++ b/code/controllers/CMSPagesController.php @@ -15,6 +15,13 @@ class CMSPagesController extends CMSMain { return false; } + /** + * @return String + */ + public function ViewState() { + return $this->request->getVar('view'); + } + /** * Doesn't deal with a single record, and we need * to avoid session state from previous record edits leaking in here. diff --git a/templates/Includes/CMSPagesController_Content.ss b/templates/Includes/CMSPagesController_Content.ss index 0b056d91..131d93bd 100644 --- a/templates/Includes/CMSPagesController_Content.ss +++ b/templates/Includes/CMSPagesController_Content.ss @@ -9,10 +9,10 @@