mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG: Fix grid field rendering when the list is null
This commit is contained in:
parent
b8e5ebb9e3
commit
a965d3b374
@ -326,7 +326,7 @@ class GridField extends FormField {
|
||||
}
|
||||
}
|
||||
|
||||
$total = $list->count();
|
||||
$total = count($list);
|
||||
if($total > 0) {
|
||||
$rows = array();
|
||||
foreach($list as $idx => $record) {
|
||||
|
Loading…
Reference in New Issue
Block a user