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:
Ingo Schommer 2007-09-14 18:12:42 +00:00
parent 4c0681927d
commit 19e222b5c2

View File

@ -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') {