From f4584f7e98eaac77e04ce3baab7ad3c25589c61e Mon Sep 17 00:00:00 2001 From: terrtia Date: Wed, 11 Dec 2024 09:57:24 +0100 Subject: [PATCH] fix: [investigation] add object with spaces in id to an investigation --- bin/lib/Investigations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lib/Investigations.py b/bin/lib/Investigations.py index 1b35256c..85358e92 100755 --- a/bin/lib/Investigations.py +++ b/bin/lib/Investigations.py @@ -620,7 +620,7 @@ def api_register_object(user_org, user_id, user_role, json_dict): subtype = json_dict.get('subtype', '') if subtype == 'None': subtype = '' - obj_id = json_dict.get('id', '').replace(' ', '') + obj_id = json_dict.get('id', '').rstrip() comment = json_dict.get('comment', '') # if comment: