diff --git a/src/components/Employes.js b/src/components/Employes.js index 4d194ef..9c8e8bb 100644 --- a/src/components/Employes.js +++ b/src/components/Employes.js @@ -579,7 +579,7 @@ const Employes = (props) => { const stored_cookie = getCookie('tokenmysypart'); form.append("token", stored_cookie); - form.append("profile_name", local_profile_name); + form.append("ressource_humaine_profil_id", local_profile_name); @@ -793,7 +793,7 @@ const Employes = (props) => { const Dialog_1_handle_OK_buton_profil_access_right = () => { setp_user_profil(p_user_profil_tmp); setp_user_profil_changed("1"); - Getall_Profil_Acces_Right(p_user_profil_tmp); + Getall_Profil_Acces_Right(p_user_profil_tmp_id); Enable_acces_right_datagrid(); setacces_right_data_changed("1"); setDialog_1_open_profil_access_right(false); @@ -4163,6 +4163,7 @@ const Employes = (props) => { const [p_user_profil, setp_user_profil] = useState(); const [p_user_profil_tmp, setp_user_profil_tmp] = useState(); + const [p_user_profil_tmp_id, setp_user_profil_tmp_id] = useState(); const [p_user_profil_changed, setp_user_profil_changed] = useState(); const [acces_right_data_changed, setacces_right_data_changed] = useState(); @@ -9628,7 +9629,7 @@ const Employes = (props) => {
-
Profil
+
Profil ee
{ onChange={(event, value) => { if (value && value.nom) { setp_user_profil_tmp(value.nom); + setp_user_profil_tmp_id(value._id); Dialog_1_handle_change_profil_access_right(" Vous êtes sur le point de mettre à jour les droits de l'utilisateur. Pensez à enregistrer pour finaliser l'opération. ", value.nom); } @@ -9652,33 +9654,7 @@ const Employes = (props) => { } /> - {/* { - setp_user_profil_tmp(e.target.value); - Dialog_1_handle_change_profil_access_right(" Vous êtes sur le point de mettre à jour les droits de l'utilisateur. Pensez à enregistrer pour finaliser l'opération. ", e.target.value); - - }} - > - {Get_List_RH_Profils_result && - Get_List_RH_Profils_result.map((myprofil) => ( - - {JSON.parse(myprofil).profil_nom}   - - - ))} - */} +