fix: [investigation] add object with spaces in id to an investigation

master
terrtia 2024-12-11 09:57:24 +01:00
parent 9f90344fad
commit f4584f7e98
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 1 additions and 1 deletions

View File

@ -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: