fix: 修复工单审批后state不准问题

pull/7505/head
feng626 2022-01-16 17:49:17 +08:00
parent 4343b6487d
commit 6a4ffcc9ad
1 changed files with 2 additions and 1 deletions

View File

@ -195,6 +195,7 @@ class Ticket(CommonModelMixin, OrgModelMixin):
def update_current_step_state_and_assignee(self, processor, state):
if self.status_closed:
raise AlreadyClosed
if state != TicketState.approved:
self.state = state
current_node = self.current_node
current_node.update(state=state)