From fd39ed20a74789caa012aa5d4bab2596fd36dcfa Mon Sep 17 00:00:00 2001 From: Simon Welsh Date: Fri, 10 Feb 2012 13:41:40 +1300 Subject: [PATCH] BUGFIX Preview button URL had wrong case for stage parameter. --- code/controllers/CMSMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index ff965dea..b7b8d7b5 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -464,7 +464,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr } if(!$record->IsDeletedFromStage) { - $stageURLField->setValue(Controller::join_links($record->AbsoluteLink(), '?Stage=stage')); + $stageURLField->setValue(Controller::join_links($record->AbsoluteLink(), '?stage=Stage')); } // Added in-line to the form, but plucked into different view by LeftAndMain.Preview.js upon load @@ -489,7 +489,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr $form = new Form($this, "EditForm", $fields, $actions, $validator); $form->loadDataFrom($record); - $stageURLField->setValue(Controller::join_links($record->getStageURLSegment(), '?Stage=stage')); + $stageURLField->setValue(Controller::join_links($record->getStageURLSegment(), '?stage=Stage')); $form->disableDefaultAction(); $form->addExtraClass('cms-edit-form'); $form->setTemplate($this->getTemplatesWithSuffix('_EditForm'));