Merge pull request #4337 from frederic34/patch-9
FIX: When viewing tab of leave request, remaining leave days must be nb of edited user.
This commit is contained in:
commit
601284672a
@ -251,7 +251,7 @@ $out='';
|
||||
$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>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user