From 24aaee984e38953583c47435d2edddd527a86988 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Tue, 26 Aug 2014 11:09:03 +0100 Subject: [PATCH] Set the stage reading mode in LeftAndMain --- admin/code/LeftAndMain.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php index 0f335e050..b372e7d84 100644 --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -444,6 +444,9 @@ class LeftAndMain extends Controller implements PermissionProvider { // The user's theme shouldn't affect the CMS, if, for example, they have // replaced TableListField.ss or Form.ss. Config::inst()->update('SSViewer', 'theme_enabled', false); + + //set the reading mode for the admin to stage + Versioned::set_reading_mode('Stage'); } public function handleRequest(SS_HTTPRequest $request, DataModel $model = null) {