Merge pull request #1262 from ajshort/grid-field-null-list

BUG: Fix grid field rendering when the list is null
This commit is contained in:
Ingo Schommer 2013-03-08 06:12:20 -08:00
commit 07886c3e61

View File

@ -326,7 +326,7 @@ class GridField extends FormField {
}
}
$total = $list->count();
$total = count($list);
if($total > 0) {
$rows = array();
foreach($list as $idx => $record) {