mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-29 07:59:31 +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) {
|
if($total > 0) {
|
||||||
$rows = array();
|
$rows = array();
|
||||||
foreach($list as $idx => $record) {
|
foreach($list as $idx => $record) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user