Jump to content

Filter employees by profile_id in back office Employees tab


marco.es

Recommended Posts

Hello,

 

i try to apply a filter by profile on my tab "employees" in back-office, just need to list the employees with profile_id = 6.

 

I found this part of code in AdminEmployeesController.php, line 175 to 184 :

public function renderList()
{
  $this->_select = 'pl.`name` AS profile ';


$this->_join = 'LEFT JOIN `'._DB_PREFIX_.'profile` p ON a.`id_profile` = p.`id_profile`
LEFT JOIN `'._DB_PREFIX_.'profile_lang` pl ON (pl.`id_profile` = p.`id_profile`  AND pl.`id_lang` = '
.(int)$this->context->language->id.') ';


return parent::renderList();
}

but I don't found the correct solution till now; Can somebody help me?

 

Prestashop 1.6.0.11

Edited by marco.es (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...