From 9b49ebf8b495c6f0fc1b26e6025d4cbcaa24bdea Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 5 Nov 2009 22:54:17 +0000 Subject: [PATCH] BUGFIX Fixed pages not being manipulated properly in the CMS because of a PHP error in CMSBatchAction git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@90936 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSBatchAction.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/code/CMSBatchAction.php b/code/CMSBatchAction.php index 185e7334..e44e0147 100644 --- a/code/CMSBatchAction.php +++ b/code/CMSBatchAction.php @@ -172,9 +172,6 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction { FormResponse::add("if(node && node.parentTreeNode) node.parentTreeNode.removeTreeNode(node);"); FormResponse::add("$('Form_EditForm').reloadIfSetTo($id);"); } - - $page->destroy(); - unset($page); } $message = sprintf(_t('CMSBatchActions.DELETED_PAGES', 'Deleted %d pages from the published site'), $pages->Count());