mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
MINOR Correct stage URL in CMSMain->EditForm
This commit is contained in:
parent
2d88b5321d
commit
51ba790f63
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user