FIX Remove error when exporting a column that is not displayed in a GridField

This commit is contained in:
Will Rossiter 2019-08-27 11:37:21 +12:00
parent 92300051a7
commit d2a07b1047
No known key found for this signature in database
GPG Key ID: F24330E3B4B95B75

View File

@ -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'])) {