mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-09-29 11:18:58 +02:00
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:
parent
4e77810771
commit
ba979db26c
@ -26,7 +26,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Ensure user can edit
|
//Ensure user can edit
|
||||||
if(!singleton($gridField->getModelClass())->canEdit() || !$gridField->getList() || $gridField->getList()->Count()>1){
|
if(!singleton($gridField->getModelClass())->canEdit()){
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user