Rollback of change to hide checkbox if there are less than 2 rows, this seems to be breaking in some cases

This commit is contained in:
UndefinedOffset 2012-07-18 17:16:56 -03:00
parent 4e77810771
commit ba979db26c

View File

@ -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();
}