mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Added hasMethod so that you can pass ArrayData to GridField
This commit is contained in:
parent
f64715b4c9
commit
e7d5537f34
@ -339,7 +339,7 @@ class GridField extends FormField {
|
|||||||
if($total > 0) {
|
if($total > 0) {
|
||||||
$rows = array();
|
$rows = array();
|
||||||
foreach($list as $idx => $record) {
|
foreach($list as $idx => $record) {
|
||||||
if(!$record->canView()) {
|
if($record->hasMethod('canView') && !$record->canView()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$rowContent = '';
|
$rowContent = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user