mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
3501d6a57b
commit
ae028ac599
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user