Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Update hr_ajout_conges.php (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
wouldsmina authored Jul 24, 2019
1 parent 6b64745 commit 2305fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hr/hr_ajout_conges.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ function ajout_global(array $tab_new_nb_conges, array $calculProportionnel, arra
// recup de la liste de TOUS les users dont $resp_login est responsable
// (prend en compte le resp direct, les groupes, le resp virtuel, etc ...)
// renvoit une liste de login entre quotes et séparés par des virgules
$list_users_du_resp = \hr\Fonctions::get_list_all_users_du_hr($loginSession);
$list_users_du_resp = \App\ProtoControllers\Utilisateur::getListId(true);

foreach ($tab_new_nb_conges as $id_conges => $nb_jours) {
if ($nb_jours == 0) {
continue;
}
$comment = $tab_new_comment_all[$id_conges];

$sql1="SELECT u_login, u_quotite FROM conges_users WHERE u_login IN ($list_users_du_resp) ORDER BY u_login ";
$sql1= 'SELECT u_login, u_quotite FROM conges_users WHERE u_login IN ("' . implode('","', $list_users_du_resp) . '") ORDER BY u_login';
$ReqLog1 = $db->query($sql1);

while ($resultat1 = $ReqLog1->fetch_array()) {
Expand Down

0 comments on commit 2305fdf

Please sign in to comment.