mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Use DataColumns content when available in CSV export
Fix #9248 broke #9173 by accidentally checking for a string key in a numerically indexed array. Change the check to search the array instead (fixes #10308)
This commit is contained in:
parent
d9d65c4fb0
commit
e91b7be056
@ -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