From f3b0fefdb3458e4cf14e77cb3e13cd0c24c0e596 Mon Sep 17 00:00:00 2001 From: "pascal.bouron" Date: Thu, 5 Oct 2023 00:16:42 +0200 Subject: [PATCH] Actualiser app/templates/scolar/partition_editor.j2 Configuration des nouvelles partitions en "show_in_lists" Correction https://scodoc.org/git/ScoDoc/ScoDoc/issues/775 fixes #775 --- app/templates/scolar/partition_editor.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/templates/scolar/partition_editor.j2 b/app/templates/scolar/partition_editor.j2 index 0abd990fd..4aa03fc24 100644 --- a/app/templates/scolar/partition_editor.j2 +++ b/app/templates/scolar/partition_editor.j2 @@ -543,7 +543,7 @@ let params = (new URL(document.location)).searchParams; let formsemestre_id = params.get('formsemestre_id'); var url = "/ScoDoc/{{formsemestre.departement.acronym}}/api/formsemestre/" + formsemestre_id + "/partition/create"; - var payload = { partition_name: name }; + var payload = { partition_name: name, show_in_lists: true }; // Save fetch(url, @@ -566,7 +566,8 @@ // Ajout dans la zone filtres let partition = { id: r.id, - partition_name: name + partition_name: name, + show_in_lists: true } let divPartition = templateFiltres_partition(partition);