From f89cbc8a90b1b6bde433f13aebf9f017ab4b95ce Mon Sep 17 00:00:00 2001 From: lehmann Date: Thu, 31 Aug 2023 13:34:45 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20groupes=20vers=20non=20affect?= =?UTF-8?q?=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/scolar/partition_editor.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/templates/scolar/partition_editor.j2 b/app/templates/scolar/partition_editor.j2 index bdd900d929..c9375a9e72 100644 --- a/app/templates/scolar/partition_editor.j2 +++ b/app/templates/scolar/partition_editor.j2 @@ -468,7 +468,8 @@ if (to[0] != "n") { groupeSelected.closest(".grpPartitions").querySelector(`[value="${to}"]`).click(); } else { - groupeSelected.closest(".grpPartitions").querySelector(`[value="aucun"]`).click(); + let toNumber = to.split("-")[1]; + groupeSelected.closest(".grpPartitions").querySelector(`[data-idpartition="${toNumber}"] [value="aucun"]`).click(); } })