Skip to content

Commit

Permalink
Merge pull request #10310 from signify-nz/fix/10308--datacolumns-in-c…
Browse files Browse the repository at this point in the history
…sv-export

FIX Use DataColumns content when available in CSV export
  • Loading branch information
GuySartorelli authored May 13, 2022
2 parents d9d65c4 + e91b7be commit 67d5c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/GridField/GridFieldExportButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,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)
);
Expand Down

0 comments on commit 67d5c15

Please sign in to comment.