Assiduites : bug fix _edit_one external data

This commit is contained in:
Iziram 2023-11-17 11:08:47 +01:00
parent a33a919823
commit 559fd82e52

View File

@ -1014,7 +1014,7 @@ def _edit_one(assiduite_unique: Assiduite, data: dict) -> tuple[int, str]:
else assiduite_unique.external_data
)
if force and not external_data.get("module", False):
if force and not (external_data is not None and external_data.get("module", False) != ""):
errors.append(
"param 'moduleimpl_id' : le moduleimpl_id ne peut pas être nul"
)