Fixes listExportCsv()

If the header values is a localization string, it should be translated...
This commit is contained in:
Alexander Guth 2015-02-27 14:55:14 +01:00
parent 5c78140268
commit cd5e5ab8de
1 changed files with 2 additions and 2 deletions

View File

@ -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);