mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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
This commit is contained in:
parent
27521df744
commit
9b49ebf8b4
@ -172,9 +172,6 @@ class CMSBatchAction_DeleteFromLive extends CMSBatchAction {
|
|||||||
FormResponse::add("if(node && node.parentTreeNode) node.parentTreeNode.removeTreeNode(node);");
|
FormResponse::add("if(node && node.parentTreeNode) node.parentTreeNode.removeTreeNode(node);");
|
||||||
FormResponse::add("$('Form_EditForm').reloadIfSetTo($id);");
|
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());
|
$message = sprintf(_t('CMSBatchActions.DELETED_PAGES', 'Deleted %d pages from the published site'), $pages->Count());
|
||||||
|
Loading…
Reference in New Issue
Block a user