Toggle is now hidden if there are no items in the grid much like GridFieldPaginator
This commit is contained in:
parent
313b0bd3f3
commit
38c6515d64
|
@ -26,7 +26,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
|||
}
|
||||
|
||||
//Ensure user can edit
|
||||
if(!singleton($gridField->getModelClass())->canEdit()){
|
||||
if(!singleton($gridField->getModelClass())->canEdit() || !$gridField->getList() || $gridField->getList()->Count()==0){
|
||||
return array();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue