Fix employee avatar not showing at back office
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user