Merge pull request #9582 from open-sausages/pulls/fix-gridfielddatacolumns-callback

This commit is contained in:
Guy Marriott 2020-07-09 11:58:39 -07:00 committed by GitHub
commit fae61c0f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ class GridFieldDataColumns implements GridField_ColumnProvider
// Allow callbacks // Allow callbacks
if (is_array($columnInfo) && isset($columnInfo['callback'])) { if (is_array($columnInfo) && isset($columnInfo['callback'])) {
$method = $columnInfo['callback']; $method = $columnInfo['callback'];
$value = $method($record); $value = $method($record, $columnName, $gridField);
// This supports simple FieldName syntax // This supports simple FieldName syntax
} else { } else {