Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Redirect to page edit view after rolling back to a specific ver…

…sion in CMSPageHistoryController (fixes #6912)
  • Loading branch information...
commit c6b259e8568ab03302545692f44ed1ad6d306b07 1 parent 1c2ccae
@chillu chillu authored
Showing with 1 addition and 13 deletions.
  1. +1 −13 code/controllers/CMSPageHistoryController.php
View
14 code/controllers/CMSPageHistoryController.php
@@ -337,20 +337,8 @@ function doRollback($data, $form) {
$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));
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.