diff --git a/app/scodoc/sco_groups_view.py b/app/scodoc/sco_groups_view.py index f14bc5586a..3d6c494fb8 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 bf9481234f..6a59538cce 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(