forked from ScoDoc/ScoDoc
Fix bug saisie assiduité: redirect (chrome)
This commit is contained in:
parent
242b233d85
commit
86d77dc5a6
@ -257,7 +257,7 @@ def ajout_assiduite_etud() -> str | Response:
|
|||||||
moduleimpl_id: int | None = request.args.get("moduleimpl_id", "")
|
moduleimpl_id: int | None = request.args.get("moduleimpl_id", "")
|
||||||
|
|
||||||
redirect_url: str = (
|
redirect_url: str = (
|
||||||
"#"
|
request.url
|
||||||
if not saisie_eval
|
if not saisie_eval
|
||||||
else url_for(
|
else url_for(
|
||||||
"notes.evaluation_check_absences_html",
|
"notes.evaluation_check_absences_html",
|
||||||
@ -292,6 +292,7 @@ def ajout_assiduite_etud() -> str | Response:
|
|||||||
ok = _record_assiduite_etud(etud, form, formsemestre=formsemestre)
|
ok = _record_assiduite_etud(etud, form, formsemestre=formsemestre)
|
||||||
if ok:
|
if ok:
|
||||||
flash("enregistré")
|
flash("enregistré")
|
||||||
|
log(f"redirect_url={redirect_url}")
|
||||||
return redirect(redirect_url)
|
return redirect(redirect_url)
|
||||||
|
|
||||||
force_options = {"show_pres": True, "show_reta": True}
|
force_options = {"show_pres": True, "show_reta": True}
|
||||||
|
Loading…
Reference in New Issue
Block a user