From 64dd1f2638d0c02040871d0ea2f03677fc2c5cc6 Mon Sep 17 00:00:00 2001 From: Naomi Guyer Date: Tue, 16 Sep 2014 16:17:54 +1200 Subject: [PATCH] BUG: Changes not visible when moving page It seems that the CMS reading mode for sitetree is set to Live, but showing draft. Not sure what is going on, but this fixes it. --- code/CMSBatchAction_MoveToController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/CMSBatchAction_MoveToController.php b/code/CMSBatchAction_MoveToController.php index 5ac5f4b..d112275 100644 --- a/code/CMSBatchAction_MoveToController.php +++ b/code/CMSBatchAction_MoveToController.php @@ -41,7 +41,8 @@ public function index($request, $pageIDs = null) { * @return Form $form */ public function MovePagesForm($pageIDs = null){ - + Versioned::reading_stage('Stage'); // Needs this for changes to effect draft tree + $action = FormAction::create('doMovePages', 'Move') ->setUseButtonTag('true') ->addExtraClass('ss-ui-button ss-ui-action-constructive batch-form-actions')