Skip to content

Commit

Permalink
Added hasMethod so that you can pass ArrayData to GridField
Browse files Browse the repository at this point in the history
  • Loading branch information
John Milmine authored and simonwelsh committed Aug 7, 2014
1 parent f64715b commit e7d5537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forms/gridfield/GridField.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function FieldHolder($properties = array()) {
if($total > 0) {
$rows = array();
foreach($list as $idx => $record) {
if(!$record->canView()) {
if($record->hasMethod('canView') && !$record->canView()) {
continue;
}
$rowContent = '';
Expand Down

0 comments on commit e7d5537

Please sign in to comment.