elofgren: BUGFIX: Fix Ticket: #56 After Newsletter type is deleted, it should not still be editable in right frame http://support.silverstripe.com/gsoc/ticket/56

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42055 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-16 02:29:09 +00:00
parent 3501d6a57b
commit ae028ac599

View File

@ -72,6 +72,8 @@ class NewsletterAdmin extends LeftAndMain {
}
FormResponse::add("removeTreeNodeByIdx(\$('sitetree'), '$id' );");
// Don't allow a deleted draft to be edited
FormResponse::add("$('Form_EditForm').closeIfSetTo('$matches[1]');");
$count++;
}