diff --git a/app/scodoc/sco_edit_module.py b/app/scodoc/sco_edit_module.py
index ece30a345..68166788e 100644
--- a/app/scodoc/sco_edit_module.py
+++ b/app/scodoc/sco_edit_module.py
@@ -359,7 +359,6 @@ def can_delete_module(module):
def do_module_delete(oid):
"delete module"
- from app.scodoc import sco_formations
module = Module.query.get_or_404(oid)
mod = module_list({"module_id": oid})[0] # sco7
@@ -422,13 +421,14 @@ def module_delete(module_id=None):
H = [
html_sco_header.sco_header(page_title="Suppression d'un module"),
- """
Suppression du module %(titre)s (%(code)s)
""" % mod,
+ f"""Suppression du module {module.titre} ({module.code})
""",
]
dest_url = url_for(
"notes.ue_table",
scodoc_dept=g.scodoc_dept,
- formation_id=str(mod["formation_id"]),
+ formation_id=module.formation_id,
+ semestre_idx=module.ue.semestre_idx,
)
tf = TrivialFormulator(
request.base_url,
diff --git a/sco_version.py b/sco_version.py
index 8c3e5f8bd..027f1d59a 100644
--- a/sco_version.py
+++ b/sco_version.py
@@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
-SCOVERSION = "9.2.18"
+SCOVERSION = "9.2.19"
SCONAME = "ScoDoc"