From 6a4ffcc9ad91d177cd6fd959dc21c52fe915e279 Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Sun, 16 Jan 2022 17:49:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E5=90=8Estate=E4=B8=8D=E5=87=86=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tickets/models/ticket.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/tickets/models/ticket.py b/apps/tickets/models/ticket.py index f8d7be16c..fb6e15222 100644 --- a/apps/tickets/models/ticket.py +++ b/apps/tickets/models/ticket.py @@ -195,7 +195,8 @@ class Ticket(CommonModelMixin, OrgModelMixin): def update_current_step_state_and_assignee(self, processor, state): if self.status_closed: raise AlreadyClosed - self.state = state + if state != TicketState.approved: + self.state = state current_node = self.current_node current_node.update(state=state) current_node.first().ticket_assignees.filter(assignee=processor).update(state=state)