MINOR Redirect to page edit view after rolling back to a specific version in CMSPageHistoryController (fixes #6912)

This commit is contained in:
Ingo Schommer 2012-03-14 16:20:13 +01:00
parent 1c2ccaecb1
commit c6b259e856

View File

@ -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));
}
/**