From ae028ac5998ca91d530d01b492a6c1abeb3855f2 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Sep 2007 02:29:09 +0000 Subject: [PATCH] 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 --- code/NewsletterAdmin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/NewsletterAdmin.php b/code/NewsletterAdmin.php index 20924a73..fb1ae909 100755 --- a/code/NewsletterAdmin.php +++ b/code/NewsletterAdmin.php @@ -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++; }