From d519760c865ef308ee811655ca55cbf8a748ccd3 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 6483c5102..d6a77c614 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), )