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:
parent
70e57120d0
commit
9145955978
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue