diff --git a/src/Forms/GridField/GridFieldExportButton.php b/src/Forms/GridField/GridFieldExportButton.php index fb383a4c270..9e56b76aad2 100644 --- a/src/Forms/GridField/GridFieldExportButton.php +++ b/src/Forms/GridField/GridFieldExportButton.php @@ -242,7 +242,7 @@ public function generateExportFileData($gridField) } $value = $columnHeader($relObj); - } elseif ($gridFieldColumnsComponent && array_key_exists($columnSource, $columnsHandled ?? [])) { + } elseif ($gridFieldColumnsComponent && in_array($columnSource, $columnsHandled ?? [])) { $value = strip_tags( $gridFieldColumnsComponent->getColumnContent($gridField, $item, $columnSource) ?? '' );