From 75b87b24de2bed5d936aea13025c3551fa7bb534 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 22 Jan 2023 17:44:57 -0300 Subject: [PATCH] Fix #569 front: ADJR --- app/but/jury_but.py | 2 +- app/static/js/jury_but.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/but/jury_but.py b/app/but/jury_but.py index ae0bfb4dd..6ef89a37b 100644 --- a/app/but/jury_but.py +++ b/app/but/jury_but.py @@ -1057,7 +1057,7 @@ class DecisionsProposeesRCUE(DecisionsProposees): flash( f"""UEs du RCUE "{dec_ue.ue.niveau_competence.competence.titre}" passées en ADJR""" ) - dec_ue.record("ADJR") + dec_ue.record(sco_codes.ADJR) # Valide les niveaux inférieurs de la compétence (code ADSUP) # TODO diff --git a/app/static/js/jury_but.js b/app/static/js/jury_but.js index 7c881c445..909a76d95 100644 --- a/app/static/js/jury_but.js +++ b/app/static/js/jury_but.js @@ -26,8 +26,10 @@ function change_menu_code(elt) { let ue_selects = elt.parentElement.parentElement.parentElement.querySelectorAll( "select.ue_rcue_" + elt.dataset.niveau_id); ue_selects.forEach(select => { - select.value = "ADJR"; - change_menu_code(select); // pour changer les styles + if (select.value != "ADM") { + select.value = "ADJR"; + change_menu_code(select); // pour changer les styles + } }); } }