Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Rollback of change to hide checkbox if there are less than 2 rows, th…

…is seems to be breaking in some cases
  • Loading branch information...
commit ba979db26c23534a22ab59b02c6a650fa6965ea5 1 parent 4e77810
Ed Chipman authored

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() || !$gridField->getList() || $gridField->getList()->Count()>1){
  29
+		if(!singleton($gridField->getModelClass())->canEdit()){
30 30
 			return array();
31 31
 		}
32 32
 		

0 notes on commit ba979db

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