Merge pull request #7059 from jumpserver/pr@dev@ticket_send_message_multiple_times

fix: 修复工单结束重复发送受理人消息bug
pull/7062/head
feng626 3 years ago committed by GitHub
commit a0db2f6ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,12 +25,12 @@ class BaseHandler(object):
if self.ticket.approval_step != len(self.ticket.process_map): if self.ticket.approval_step != len(self.ticket.process_map):
self.ticket.approval_step += 1 self.ticket.approval_step += 1
self.ticket.create_related_node() self.ticket.create_related_node()
self._send_applied_mail_to_assignees()
is_finished = False is_finished = False
else: else:
self.ticket.set_state_approve() self.ticket.set_state_approve()
self.ticket.set_status_closed() self.ticket.set_status_closed()
is_finished = True is_finished = True
self._send_applied_mail_to_assignees()
self.__on_process(self.ticket.processor) self.__on_process(self.ticket.processor)
return is_finished return is_finished

Loading…
Cancel
Save