Skip to content

Commit

Permalink
FIX: User id correction on holiday request
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarcet committed Jun 28, 2017
1 parent c4546b6 commit 4283b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/holiday/card.php
Expand Up @@ -792,7 +792,7 @@ function valider()
if (empty($user->rights->holiday->write_all))
{
print $form->select_dolusers($fuserid, 'useridbis', 0, '', 1, '', '', 0, 0, 0, '', 0, '', 'maxwidth300');
print '<input type="hidden" name="fuserid" value="'.$fuserid.'">';
print '<input type="hidden" name="fuserid" value="'.($fuserid?$fuserid:$user->id).'">';
}
else print $form->select_dolusers(GETPOST('fuserid')?GETPOST('fuserid'):$user->id,'fuserid',0,'',0);
print '</td>';
Expand Down

0 comments on commit 4283b1e

Please sign in to comment.