forked from ScoDoc/ScoDoc
Erreur si la reponse portail n'a pas le mail
This commit is contained in:
parent
e9ad417f1f
commit
2cac0031f6
@ -854,9 +854,13 @@ def formsemestre_import_etud_admission(
|
|||||||
apo_emailperso = etud.get("mailperso", "")
|
apo_emailperso = etud.get("mailperso", "")
|
||||||
if info["emailperso"] and not apo_emailperso:
|
if info["emailperso"] and not apo_emailperso:
|
||||||
apo_emailperso = info["emailperso"]
|
apo_emailperso = info["emailperso"]
|
||||||
|
if import_email:
|
||||||
|
if not "mail" in etud:
|
||||||
|
raise ScoValueError(
|
||||||
|
"la réponse portail n'a pas le champs requis 'mail'"
|
||||||
|
)
|
||||||
if (
|
if (
|
||||||
import_email
|
info["email"] != etud["mail"]
|
||||||
and info["email"] != etud["mail"]
|
|
||||||
or info["emailperso"] != apo_emailperso
|
or info["emailperso"] != apo_emailperso
|
||||||
):
|
):
|
||||||
sco_etud.adresse_edit(
|
sco_etud.adresse_edit(
|
||||||
|
Loading…
Reference in New Issue
Block a user