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

Commit

Permalink
1.13 (#892)
Browse files Browse the repository at this point in the history
* update libertAPI 1.9

* mise à jour composer.lock (#856)

* Patch ajout d'un utilisateur avec heures désactivés (#891)

* patch bug ajout user avec heures désactivés

* Update hr_ajout_user.php
  • Loading branch information
wouldsmina authored Feb 20, 2020
1 parent 82081e8 commit 87477de
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 87477de

Please sign in to comment.