diff --git a/app/views/notes.py b/app/views/notes.py index 6483c51021..d6a77c614d 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), )