Merge pull request #10310 from signify-nz/fix/10308--datacolumns-in-csv-export

FIX Use DataColumns content when available in CSV export
This commit is contained in:
Guy Sartorelli 2022-05-13 15:29:01 +12:00 committed by GitHub
commit 67d5c15c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
);