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

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

Merged
merged 2 commits into from
Feb 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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