Permalink
Browse files

BUG: Fix grid field rendering when the list is null

  • Loading branch information...
1 parent b8e5ebb commit a965d3b37437f06e10ac051ab79509a613d39924 @ajshort ajshort committed Mar 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/gridfield/GridField.php
@@ -326,7 +326,7 @@ public function FieldHolder($properties = array()) {
}
}
- $total = $list->count();
+ $total = count($list);
if($total > 0) {
$rows = array();
foreach($list as $idx => $record) {

0 comments on commit a965d3b

Please sign in to comment.