Skip to content
Snippets Groups Projects
Commit 90552a80 authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Fix: associations BUT comme non super-admin

parent 510a6374
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,8 @@ Choisissez un parcours... ...@@ -161,7 +161,8 @@ Choisissez un parcours...
function ue_assoc_niveau(event, niveau_id) { function ue_assoc_niveau(event, niveau_id) {
let ue_id = event.target.value; let ue_id = event.target.value;
let url = ""; let url = "";
let force = document.getElementById('force_modification').checked; let checkbox = document.getElementById('force_modification');
let force = checkbox ? checkbox.checked : false;
if (ue_id == "") { if (ue_id == "") {
/* Dé-associe */ /* Dé-associe */
ue_id = event.target.dataset.ue_id; ue_id = event.target.dataset.ue_id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment