From 559fd82e5256fbe3aa71fa8375990986382dc476 Mon Sep 17 00:00:00 2001 From: Iziram Date: Fri, 17 Nov 2023 11:08:47 +0100 Subject: [PATCH] Assiduites : bug fix _edit_one external data --- app/api/assiduites.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/assiduites.py b/app/api/assiduites.py index ae0993a76..1abb6479d 100644 --- a/app/api/assiduites.py +++ b/app/api/assiduites.py @@ -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" )