mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Added feedback after creating page (fixes #7297)
This commit is contained in:
parent
6ed5ef9648
commit
b5254862a2
@ -124,6 +124,12 @@ class CMSPageAddController extends CMSPageEditController {
|
||||
$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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user