From 5d45fcf6568cd18560f495115f0c52f326e7a616 Mon Sep 17 00:00:00 2001 From: Iziram Date: Mon, 22 Apr 2024 11:24:16 +0200 Subject: [PATCH] =?UTF-8?q?Assiduit=C3=A9=20:=20signal=5Fassiduites=5Fgrou?= =?UTF-8?q?p=20:=20bug=20fix=20suppr=20assi=20autre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/js/assiduites.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/static/js/assiduites.js b/app/static/js/assiduites.js index a269db1a0..30cddade0 100644 --- a/app/static/js/assiduites.js +++ b/app/static/js/assiduites.js @@ -425,7 +425,7 @@ async function getModuleImpl(assiduite) { return res.json(); }) .then((data) => { - moduleimpls[id] = `${data.module.code} ${data.module.abbrev || ''}`; + moduleimpls[id] = `${data.module.code} ${data.module.abbrev || ""}`; return moduleimpls[id]; }) .catch((_) => { @@ -531,12 +531,7 @@ async function MiseAJourLigneEtud(etud) { async function actionAssiduite(etud, etat, type, assiduite = null) { const modimpl_id = $("#moduleimpl_select").val(); - if ( - assiduite && - assiduite.etat.toLowerCase() === etat && - assiduite.moduleimpl_id == modimpl_id - ) - type = "suppression"; + if (assiduite && assiduite.etat.toLowerCase() === etat) type = "suppression"; const { deb, fin } = getPeriodAsDate();