Skip to content

Commit

Permalink
BUG: Changes not visible when moving page
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Naomi Guyer committed Sep 16, 2014
1 parent 14ce023 commit 64dd1f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/CMSBatchAction_MoveToController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 64dd1f2

Please sign in to comment.