mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-27 07:17:10 +00:00
fix: 修复工单审批后state不准问题
This commit is contained in:
parent
4343b6487d
commit
6a4ffcc9ad
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user