Adds the ability to override the column header label in import/export. (#4737)

Now we can use the `backend.list.overrideHeaderValue` event also in the import/export.
This commit is contained in:
Robin Bonnes 2019-12-10 10:06:10 +01:00 committed by Samuel Georges
parent 70e57120d0
commit 9145955978
1 changed files with 1 additions and 1 deletions

View File

@ -629,7 +629,7 @@ class ImportExportController extends ControllerBehavior
$headers = []; $headers = [];
$columns = $widget->getVisibleColumns(); $columns = $widget->getVisibleColumns();
foreach ($columns as $column) { foreach ($columns as $column) {
$headers[] = Lang::get($column->label); $headers[] = $widget->getHeaderValue($column);
} }
$csv->insertOne($headers); $csv->insertOne($headers);