forked from ScoDoc/ScoDoc
Fix: creation semestre-> renvoi sur annulation
This commit is contained in:
parent
0824598aa4
commit
c5a702e6d1
@ -793,13 +793,16 @@ def do_formsemestre_createwithmodules(edit=False, formsemestre: FormSemestre = N
|
|||||||
{tf[1]}
|
{tf[1]}
|
||||||
"""
|
"""
|
||||||
elif tf[0] == -1:
|
elif tf[0] == -1:
|
||||||
return redirect(
|
if formsemestre:
|
||||||
url_for(
|
return redirect(
|
||||||
"notes.formsemestre_status",
|
url_for(
|
||||||
scodoc_dept=g.scodoc_dept,
|
"notes.formsemestre_status",
|
||||||
formsemestre_id=formsemestre.id if formsemestre else formsemestre_id,
|
scodoc_dept=g.scodoc_dept,
|
||||||
|
formsemestre_id=formsemestre.id,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
else:
|
||||||
|
return redirect(url_for("notes.index_html", scodoc_dept=g.scodoc_dept))
|
||||||
else:
|
else:
|
||||||
if tf[2]["gestion_compensation_lst"]:
|
if tf[2]["gestion_compensation_lst"]:
|
||||||
tf[2]["gestion_compensation"] = True
|
tf[2]["gestion_compensation"] = True
|
||||||
|
Loading…
Reference in New Issue
Block a user