Skip to content

Commit f4584f7

Browse files
committed
fix: [investigation] add object with spaces in id to an investigation
1 parent 9f90344 commit f4584f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/lib/Investigations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ def api_register_object(user_org, user_id, user_role, json_dict):
620620
subtype = json_dict.get('subtype', '')
621621
if subtype == 'None':
622622
subtype = ''
623-
obj_id = json_dict.get('id', '').replace(' ', '')
623+
obj_id = json_dict.get('id', '').rstrip()
624624

625625
comment = json_dict.get('comment', '')
626626
# if comment:

0 commit comments

Comments
 (0)