mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
07886c3e61
@ -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