From 75d0170b4a7e2cb3354d627f54a6affbbf7e74bc Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 29 Jun 2023 23:26:14 +0200 Subject: [PATCH] Fix: ue_sharing_code --- app/views/notes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/notes.py b/app/views/notes.py index 6483c510..d6a77c61 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -498,8 +498,10 @@ def ue_sharing_code(): hide_ue_id = request.args.get("hide_ue_id") return sco_edit_ue.ue_sharing_code( ue_code=ue_code, - ue_id=None if ue_id is None else int(ue_id), - hide_ue_id=None if hide_ue_id is None else int(hide_ue_id), + ue_id=None if ((ue_id is None) or ue_id == "") else int(ue_id), + hide_ue_id=None + if ((hide_ue_id is None) or hide_ue_id == "") + else int(hide_ue_id), )