flowsteps接口bug
This commit is contained in:
parent
b7a701efe6
commit
e1ddd7f9e7
|
@ -57,10 +57,11 @@ class WfService(object):
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_ticket_steps(cls, ticket:Ticket):
|
def get_ticket_steps(cls, ticket:Ticket):
|
||||||
steps = cls.get_worlflow_states(ticket.workflow)
|
steps = cls.get_worlflow_states(ticket.workflow)
|
||||||
|
nsteps_list = []
|
||||||
for i in steps:
|
for i in steps:
|
||||||
if ticket.state.is_hidden and ticket.state != i:
|
if ticket.state == i or (not i.is_hidden):
|
||||||
steps.remove(i)
|
nsteps_list.append(i)
|
||||||
return steps
|
return nsteps_list
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_ticket_transitions(cls, ticket:Ticket):
|
def get_ticket_transitions(cls, ticket:Ticket):
|
||||||
|
|
Loading…
Reference in New Issue