diff --git a/src/Forms/GridField/GridFieldExportButton.php b/src/Forms/GridField/GridFieldExportButton.php index 8d5b3b427..de5d523b4 100644 --- a/src/Forms/GridField/GridFieldExportButton.php +++ b/src/Forms/GridField/GridFieldExportButton.php @@ -234,7 +234,7 @@ class GridFieldExportButton implements GridField_HTMLProvider, GridField_ActionP } $value = $columnHeader($relObj); - } elseif ($gridFieldColumnsComponent && array_key_exists($columnSource, $columnsHandled)) { + } elseif ($gridFieldColumnsComponent && in_array($columnSource, $columnsHandled)) { $value = strip_tags( $gridFieldColumnsComponent->getColumnContent($gridField, $item, $columnSource) );