[fs2zammad] fix small ticket creator logic bug

This commit is contained in:
fnux 2024-04-22 17:32:59 +02:00
parent 8e8ff86f9f
commit 900f8d6a44
No known key found for this signature in database
GPG key ID: 4502C902C00A1E12

View file

@ -228,7 +228,7 @@ def create_zammad_ticket(id, zammad, h2t):
# without giving its author 'Agent' privileges.
restore_creator_to = None
if entry_creator_id != zammad_ticket["customer_id"]:
zammad_ticket = zammad.ticket.update(zammad_ticket["id"], {"customer_id": entry_creator_id})
zammad.ticket.update(zammad_ticket["id"], {"customer_id": entry_creator_id})
restore_creator_to = zammad_ticket["customer_id"]
zammad_ticket_id = zammad_ticket["id"]