Skip to content
Snippets Groups Projects
Commit 60128467 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #4337 from frederic34/patch-9

FIX: When viewing tab of leave request, remaining leave days must be nb of edited user.
parents f6fead74 a0b3cdbd
No related branches found
No related tags found
No related merge requests found
...@@ -251,7 +251,7 @@ $out=''; ...@@ -251,7 +251,7 @@ $out='';
$typeleaves=$holiday->getTypes(1,1); $typeleaves=$holiday->getTypes(1,1);
foreach($typeleaves as $key => $val) foreach($typeleaves as $key => $val)
{ {
$nb_type = $holiday->getCPforUser($user->id, $val['rowid']); $nb_type = $holiday->getCPforUser($user_id, $val['rowid']);
$nb_holiday += $nb_type; $nb_holiday += $nb_type;
$out .= ' - '.$val['label'].': <strong>'.($nb_type?price2num($nb_type):0).'</strong><br>'; $out .= ' - '.$val['label'].': <strong>'.($nb_type?price2num($nb_type):0).'</strong><br>';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment