mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9197 from wilr/pulls/gridfield-columnlookup
FIX Remove error when exporting a column that is not displayed in a GridField
This commit is contained in:
commit
e078eea7dd
@ -154,7 +154,7 @@ class GridFieldDataColumns implements GridField_ColumnProvider
|
||||
{
|
||||
// Find the data column for the given named column
|
||||
$columns = $this->getDisplayFields($gridField);
|
||||
$columnInfo = $columns[$columnName];
|
||||
$columnInfo = array_key_exists($columnName, $columns) ? $columns[$columnName] : null;
|
||||
|
||||
// Allow callbacks
|
||||
if (is_array($columnInfo) && isset($columnInfo['callback'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user