MINOR Correct stage URL in CMSMain->EditForm

This commit is contained in:
Ingo Schommer 2011-04-28 22:44:46 +12:00
parent 2d88b5321d
commit 51ba790f63

View File

@ -410,7 +410,7 @@ JS;
}
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 @@ JS;
$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'));