Fixed lookup.

This commit is contained in:
Martin Edenhofer 2015-07-26 23:56:50 +02:00
parent 7279536d8f
commit 117f761348

View file

@ -239,7 +239,7 @@ returns
# set all to seen if pending action state is a closed or merged state # set all to seen if pending action state is a closed or merged state
if state_type.name == 'pending action' && state.next_state_id if state_type.name == 'pending action' && state.next_state_id
state = Ticket::State.lookup( id: next_state_id ) state = Ticket::State.lookup( id: state.next_state_id )
state_type = Ticket::StateType.lookup( id: state.state_type_id ) state_type = Ticket::StateType.lookup( id: state.state_type_id )
end end