Assiduites : bugfix justif import fichier

This commit is contained in:
iziram 2023-08-11 16:59:53 +02:00
parent c08cb8c797
commit 1fe7e79948
2 changed files with 5 additions and 5 deletions

View File

@ -885,7 +885,7 @@ function createAssiduite(etat, etudid) {
(data, status) => {
//success
if (data.success.length > 0) {
let obj = data.success["0"].assiduite_id;
let obj = data.success["0"].message.assiduite_id;
}
},
(data, status) => {
@ -910,7 +910,7 @@ function deleteAssiduite(assiduite_id) {
(data, status) => {
//success
if (data.success.length > 0) {
let obj = data.success["0"].assiduite_id;
let obj = data.success["0"].message.assiduite_id;
}
},
(data, status) => {

View File

@ -164,7 +164,7 @@
dateType: 'json',
contentType: false,
processData: false,
success: () => { },
success: () => { console.log("done") },
}
)
)
@ -192,8 +192,8 @@
errorAlert();
}
if (Object.keys(data.success).length > 0) {
couverture = data.success[0].couverture
justif_id = data.success[0].justif_id;
couverture = data.success[0].message.couverture
justif_id = data.success[0].message.justif_id;
importFiles(justif_id);
return;
}