1
0
forked from ScoDoc/ScoDoc

Fiix UE edit. Close #439

This commit is contained in:
Emmanuel Viennet 2022-07-11 21:39:08 +02:00
parent b34484784a
commit 45a2fa174c

View File

@ -236,6 +236,7 @@ def do_module_edit(vals: dict) -> None:
mod = module_list({"module_id": vals["module_id"]})[0]
if module_is_locked(mod["module_id"]):
# formation verrouillée: empeche de modifier certains champs:
vals = vals.copy()
protected_fields = ("coefficient", "ue_id", "matiere_id", "semestre_id")
for f in protected_fields:
if f in vals: