From 616237d5c77e1658de01083b3cf91979edb46721 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 31 Aug 2015 11:13:40 +0200 Subject: [PATCH] Set all to seen if new state is pending reminder state. --- app/models/ticket.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/ticket.rb b/app/models/ticket.rb index 8a46ded33..c2f22aee4 100644 --- a/app/models/ticket.rb +++ b/app/models/ticket.rb @@ -243,6 +243,9 @@ returns state_type = Ticket::StateType.lookup( id: state.state_type_id ) end + # set all to seen if new state is pending reminder state + return true if state_type.name == 'pending reminder' + # set all to seen if new state is a closed or merged state return true if state_type.name == 'closed' return true if state_type.name == 'merged'