resolve csv export issues

This commit is contained in:
Shreesh Arora
2024-05-03 15:46:48 +05:30
parent 1740165348
commit d343463ac1
4 changed files with 12 additions and 10 deletions

View File

@@ -153,7 +153,10 @@ abstract class ModuleGridCore extends Module
protected function csvExport($datas)
{
$this->_sort = $datas['defaultSortColumn'];
$this->setLang(Context::getContext()->language->id);
$context = Context::getContext();
$this->setLang($context->language->id);
$this->setEmployee($context->employee->id);
if (isset($datas['option'])) {
$this->setOption($datas['option'], $layers);
}