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:
parent
38c6515d64
commit
4e77810771
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue