Changed minimum number of items to be 2, since having the toggle there for 1 doesn't make any sense

This commit is contained in:
UndefinedOffset 2012-07-18 10:39:37 -03:00
parent 38c6515d64
commit 4e77810771
1 changed files with 1 additions and 1 deletions

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()==0){
if(!singleton($gridField->getModelClass())->canEdit() || !$gridField->getList() || $gridField->getList()->Count()>1){
return array();
}