Permalink
Browse files

MINOR Added feedback after creating page (fixes #7297)

  • Loading branch information...
1 parent 6ed5ef9 commit b5254862a2b76699c510ea0067c51584f66864cb @chillu chillu committed Jun 4, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 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));
}

0 comments on commit b525486

Please sign in to comment.