From c0dfaa0b51ab0089e12301f48eb8f9d322c684ca Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 12 Apr 2010 03:18:05 +0000 Subject: [PATCH] BUGFIX: Don't set the nodelete class on the CMS tree on load, since this is now handled by the batch-action system with an Ajax call. (from r94762) (from r96770) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102397 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/SiteTree.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index 01be695fb..6df790923 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -2292,14 +2292,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid if(!$this->canAddChildren()) $classes .= " nochildren"; - if( - !$this->canDelete() - // @todo Temporary workaround for UI-problem: We can't distinguish batch selection for publication from - // the delete selection (see http://open.silverstripe.com/ticket/3109 and http://open.silverstripe.com/ticket/3302) - || !$this->canPublish() - ) - $classes .= " nodelete"; - if($controller->isCurrentPage($this)) $classes .= " current";