mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9582 from open-sausages/pulls/fix-gridfielddatacolumns-callback
This commit is contained in:
commit
fae61c0f1d
@ -159,7 +159,7 @@ class GridFieldDataColumns implements GridField_ColumnProvider
|
||||
// Allow callbacks
|
||||
if (is_array($columnInfo) && isset($columnInfo['callback'])) {
|
||||
$method = $columnInfo['callback'];
|
||||
$value = $method($record);
|
||||
$value = $method($record, $columnName, $gridField);
|
||||
|
||||
// This supports simple FieldName syntax
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user