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

Commit

Permalink
Patch ajout d'un utilisateur avec heures désactivés (#891)
Browse files Browse the repository at this point in the history
* patch bug ajout user avec heures désactivés

* Update hr_ajout_user.php
  • Loading branch information
wouldsmina authored Feb 20, 2020
1 parent 8867f34 commit 468204c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hr/hr_ajout_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ function dataForm2Array(array $htmlPost, \includes\SQL $sql, \App\Libraries\Conf
$data['nom'] = htmlentities($htmlPost['new_nom'], ENT_QUOTES | ENT_HTML401);
$data['prenom'] = htmlentities($htmlPost['new_prenom'], ENT_QUOTES | ENT_HTML401);
$data['quotite'] = (int) $htmlPost['new_quotite'];
$data['soldeHeure'] = htmlentities($htmlPost['new_solde_heure'], ENT_QUOTES | ENT_HTML401);
$data['soldeHeure'] = key_exists('new_solde_heure', $htmlPost)
? htmlentities($htmlPost['new_solde_heure'], ENT_QUOTES | ENT_HTML401)
: '00:00';
$data['isActive'] = 'N' === $htmlPost['new_is_active'] ? 'N' : 'Y';
$data['isResp'] = 'Y' === $htmlPost['new_is_resp'] ? 'Y' : 'N';
$data['isAdmin'] = 'Y' === $htmlPost['new_is_admin'] ? 'Y' : 'N';
Expand Down

0 comments on commit 468204c

Please sign in to comment.