mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
67d5c15c5e
@ -234,7 +234,7 @@ class GridFieldExportButton implements GridField_HTMLProvider, GridField_ActionP
|
|||||||
}
|
}
|
||||||
|
|
||||||
$value = $columnHeader($relObj);
|
$value = $columnHeader($relObj);
|
||||||
} elseif ($gridFieldColumnsComponent && array_key_exists($columnSource, $columnsHandled)) {
|
} elseif ($gridFieldColumnsComponent && in_array($columnSource, $columnsHandled)) {
|
||||||
$value = strip_tags(
|
$value = strip_tags(
|
||||||
$gridFieldColumnsComponent->getColumnContent($gridField, $item, $columnSource)
|
$gridFieldColumnsComponent->getColumnContent($gridField, $item, $columnSource)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user