From ba979db26c23534a22ab59b02c6a650fa6965ea5 Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Wed, 18 Jul 2012 17:16:56 -0300 Subject: [PATCH] Rollback of change to hide checkbox if there are less than 2 rows, this seems to be breaking in some cases --- code/forms/GridFieldSortableRows.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/forms/GridFieldSortableRows.php b/code/forms/GridFieldSortableRows.php index 757803c..62481c6 100644 --- a/code/forms/GridFieldSortableRows.php +++ b/code/forms/GridFieldSortableRows.php @@ -26,7 +26,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP } //Ensure user can edit - if(!singleton($gridField->getModelClass())->canEdit() || !$gridField->getList() || $gridField->getList()->Count()>1){ + if(!singleton($gridField->getModelClass())->canEdit()){ return array(); }