Merge branch 'ticket-13015-modifAdminSale' into develop

This commit is contained in:
Marion Muszynski 2017-04-13 13:02:06 +02:00
commit cf81f171ca

View File

@ -0,0 +1,15 @@
<?php
class Employee extends EmployeeCore {
public static function getEmployeesByProfile($id_profiles=array())
{
Tools::displayAsDeprecated();
return Db::getInstance()->ExecuteS('
SELECT `id_employee`, CONCAT(`firstname`, \' \', `lastname`) AS "name"
FROM `'._DB_PREFIX_.'employee`
WHERE `active` = 1 AND id_profile IN ('.implode(',',$id_profiles).')
ORDER BY `email`');
}
}