Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Added feedback after creating page (fixes #7297)

  • Loading branch information...
commit b5254862a2b76699c510ea0067c51584f66864cb 1 parent 6ed5ef9
@chillu chillu authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 code/controllers/CMSPageAddController.php
View
6 code/controllers/CMSPageAddController.php
@@ -124,6 +124,12 @@ public function doAdd($data, $form) {
$record->write();
$editController = singleton('CMSPageEditController');
$editController->setCurrentPageID($record->ID);
+
+ Session::set(
+ "FormInfo.Form_EditForm.formError.message",
+ _t('CMSMain.PageAdded', 'Successfully created page')
+ );
+ Session::set("FormInfo.Form_EditForm.formError.type", 'good');
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.