From b56f205e8931650160fa445418b7bf9c2923204e Mon Sep 17 00:00:00 2001 From: Place Jean-Marie Date: Thu, 23 Sep 2021 07:33:28 +0200 Subject: [PATCH] fix group_selector / info_etu popup --- app/scodoc/sco_groups_view.py | 5 ++--- app/scodoc/sco_page_etud.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/scodoc/sco_groups_view.py b/app/scodoc/sco_groups_view.py index f14bc558..3d6c494f 100644 --- a/app/scodoc/sco_groups_view.py +++ b/app/scodoc/sco_groups_view.py @@ -165,7 +165,6 @@ def form_groups_choice(groups_infos, with_selectall_butt=False, submit_on_change Si submit_on_change, ajoute une classe "submit_on_change" qui est utilisee en JS """ default_group_id = sco_groups.get_default_group(groups_infos.formsemestre_id) - H = [ """
@@ -305,8 +304,8 @@ class DisplayedGroupsInfos(object): if isinstance(group_ids, int): if group_ids: group_ids = [group_ids] # cas ou un seul parametre, pas de liste - else: - group_ids = [] + else: + group_ids = [int(g) for g in group_ids] if not formsemestre_id and moduleimpl_id: mods = sco_moduleimpl.do_moduleimpl_list(moduleimpl_id=moduleimpl_id) if len(mods) != 1: diff --git a/app/scodoc/sco_page_etud.py b/app/scodoc/sco_page_etud.py index bf948123..6a59538c 100644 --- a/app/scodoc/sco_page_etud.py +++ b/app/scodoc/sco_page_etud.py @@ -537,7 +537,7 @@ def etud_info_html(etudid, with_photo="1", REQUEST=None, debug=False): """An HTML div with basic information and links about this etud. Used for popups information windows. """ - formsemestre_id = sco_formsemestre_status.retreive_formsemestre_from_request() + formsemestre_id = int(sco_formsemestre_status.retreive_formsemestre_from_request()) with_photo = int(with_photo) etud = sco_etud.get_etud_info(filled=True)[0] photo_html = sco_photos.etud_photo_html(