Skip to content

Commit

Permalink
Improve to get all attributes from model for export
Browse files Browse the repository at this point in the history
  • Loading branch information
Eremin Michael committed Aug 16, 2018
1 parent f24984d commit 4ab6508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Crud.php
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ public function export(CrudExportForm $model)
'renderData' => (bool)$model->renderData,
'model' => $this->getModel('search'),
'dataProvider' => $this->getDataProvider(),
'columns' => $this->getConfig('exportColumns', $this->guessColumns($this->getFields())),
'columns' => $this->getConfig('exportColumns', $this->getModel()->getAttributes()),
]);
return $exporter->export();
}
Expand Down

0 comments on commit 4ab6508

Please sign in to comment.