Skip to content
Snippets Groups Projects
Commit dbd0bb92 authored by Robert Habermann's avatar Robert Habermann
Browse files

fix ticket_get_by_number

parent ed88a7e6
No related branches found
No related tags found
No related merge requests found
......@@ -923,11 +923,11 @@ class Client(object):
if len(result_list) == 0:
return False
elif len(result_list) == 1:
result = self.ticket_get_by_id(result_list[0].TicketID,
articles=articles,
attachments=attachments,
dynamic_fields=dynamic_fields)
if not result:
_result = self.ticket_get_by_id(result_list[0],
articles=articles,
attachments=attachments,
dynamic_fields=dynamic_fields)
if not _result:
return False
else:
return self.result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment