mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
elofgren: BUGFIX: In NewsletterAdmin::getNewsletterEditForm() use 'NewsletterEditForm?' instead of 'EditForm?' as the name of the form so that clicking 'Save changes' in the 'Unsaved Changes' reminder popup will actually save the Newsletter draft. (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41783 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4c0681927d
commit
19e222b5c2
@ -359,7 +359,7 @@ class NewsletterAdmin extends LeftAndMain {
|
||||
|
||||
$actions->push(new FormAction('save','Save'));
|
||||
|
||||
$form = new Form($this, "EditForm", $fields, $actions);
|
||||
$form = new Form($this, "NewsletterEditForm", $fields, $actions);
|
||||
$form->loadDataFrom($email);
|
||||
|
||||
if($email->Status != 'Draft') {
|
||||
|
Loading…
Reference in New Issue
Block a user