Fix employee avatar not showing at back office

This commit is contained in:
Abhishek Kumar
2022-08-29 15:20:43 +05:30
parent 52fdbd8501
commit f7e60ee367
18 changed files with 21 additions and 63 deletions

View File

@@ -95,7 +95,7 @@ class AdminLogsControllerCore extends AdminController
)
);
$this->list_no_link = true;
$this->_select .= 'CONCAT(LEFT(e.firstname, 1), \'. \', e.lastname) employee';
$this->_select .= 'CONCAT(e.firstname, \' \', e.lastname) employee';
$this->_join .= ' LEFT JOIN '._DB_PREFIX_.'employee e ON (a.id_employee = e.id_employee)';
$this->_use_found_rows = false;
parent::__construct();
@@ -124,8 +124,8 @@ class AdminLogsControllerCore extends AdminController
$template = $this->context->smarty->createTemplate('controllers/logs/employee_field.tpl', $this->context->smarty);
$employee = new Employee((int)$tr['id_employee']);
$template->assign(array(
'employee_image' => $employee->getImage(),
'employee_name' => $value
'employee_name' => $value,
'employee_email' => $employee->email,
));
return $template->fetch();
}