Skip to content

Commit

Permalink
Changed minimum number of items to be 2, since having the toggle ther…
Browse files Browse the repository at this point in the history
…e for 1 doesn't make any sense
  • Loading branch information
UndefinedOffset committed Jul 18, 2012
1 parent 38c6515 commit 4e77810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/forms/GridFieldSortableRows.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getHTMLFragments($gridField) {
}

//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();
}

Expand Down

0 comments on commit 4e77810

Please sign in to comment.