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) => {