mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Redirect to page edit view after rolling back to a specific version in CMSPageHistoryController (fixes #6912)
This commit is contained in:
parent
1c2ccaecb1
commit
c6b259e856
@ -337,20 +337,8 @@ class CMSPageHistoryController extends CMSMain {
|
||||
$record->Version
|
||||
);
|
||||
}
|
||||
|
||||
if($this->isAjax()) {
|
||||
$this->response->addHeader('X-Status', $message);
|
||||
$form = $this->getEditForm($record->ID);
|
||||
|
||||
return $form->forTemplate();
|
||||
}
|
||||
|
||||
return array(
|
||||
'EditForm' => $this->customise(array(
|
||||
'Message' => $message,
|
||||
'Status' => 'success'
|
||||
))->renderWith('CMSMain_notice')
|
||||
);
|
||||
return $this->redirect(Controller::join_links(singleton('CMSPageEditController')->Link('show'), $record->ID));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user