Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Correct stage URL in CMSMain->EditForm

  • Loading branch information...
commit 51ba790f634cd1982f69f88979589d2e9180bf15 1 parent 2d88b53
@chillu chillu authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  code/controller/CMSMain.php
View
3  code/controller/CMSMain.php
@@ -410,7 +410,7 @@ public function getEditForm($id = null, $fields = null) {
}
if(!$record->IsDeletedFromStage) {
- $stageURLField->setValue($record->AbsoluteLink());
+ $stageURLField->setValue(Controller::join_links($record->AbsoluteLink(), '?Stage=stage'));
}
// getAllCMSActions can be used to completely redefine the action list
@@ -441,6 +441,7 @@ public function getEditForm($id = null, $fields = null) {
$form = new Form($this, "EditForm", $fields, $actions, $validator);
$form->loadDataFrom($record);
+ $stageURLField->setValue(Controller::join_links($record->getStageURLSegment(), '?Stage=stage'));
$form->disableDefaultAction();
$form->addExtraClass('cms-edit-form');
$form->setTemplate($this->getTemplatesWithSuffix('_EditForm'));
Please sign in to comment.
Something went wrong with that request. Please try again.