Fixes listExportCsv()
If the header values is a localization string, it should be translated...
This commit is contained in:
parent
5c78140268
commit
cd5e5ab8de
|
|
@ -240,7 +240,7 @@ class ListController extends ControllerBehavior
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->controller->pageTitle = $this->controller->pageTitle ?: trans($this->getConfig(
|
||||
$this->controller->pageTitle = $this->controller->pageTitle ?: Lang::get($this->getConfig(
|
||||
'title',
|
||||
'backend::lang.list.default_title'
|
||||
));
|
||||
|
|
@ -358,7 +358,7 @@ class ListController extends ControllerBehavior
|
|||
$headers = [];
|
||||
$columns = $widget->getVisibleColumns();
|
||||
foreach ($columns as $column) {
|
||||
$headers[] = $column->label;
|
||||
$headers[] = Lang::get($column->label);
|
||||
}
|
||||
$csv->insertOne($headers);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue