Skip to content

Commit

Permalink
Merge pull request #4337 from frederic34/patch-9
Browse files Browse the repository at this point in the history
FIX: When viewing tab of leave request, remaining leave days must be nb of edited user.
  • Loading branch information
eldy committed Jan 6, 2016
2 parents f6fead7 + a0b3cdb commit 6012846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/holiday/list.php
Expand Up @@ -251,7 +251,7 @@
$typeleaves=$holiday->getTypes(1,1);
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;
$out .= ' - '.$val['label'].': <strong>'.($nb_type?price2num($nb_type):0).'</strong><br>';
}
Expand Down

0 comments on commit 6012846

Please sign in to comment.