Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Toggle is now hidden if there are no items in the grid much like Grid…

…FieldPaginator
  • Loading branch information...
commit 38c6515d641f26d6fc2cd053dafe193db72ed72e 1 parent 313b0bd
Ed Chipman authored July 18, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  code/forms/GridFieldSortableRows.php
2  code/forms/GridFieldSortableRows.php
@@ -26,7 +26,7 @@ public function getHTMLFragments($gridField) {
26 26
 		}
27 27
 		
28 28
 		//Ensure user can edit
29  
-		if(!singleton($gridField->getModelClass())->canEdit()){
  29
+		if(!singleton($gridField->getModelClass())->canEdit() || !$gridField->getList() || $gridField->getList()->Count()==0){
30 30
 			return array();
31 31
 		}
32 32
 		

0 notes on commit 38c6515

Please sign in to comment.
Something went wrong with that request. Please try again.