X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FSearch%2FUnrepliedTickets.pm;fp=rt%2Flib%2FRT%2FSearch%2FUnrepliedTickets.pm;h=a4fdacd222fa43a27423ee81c480c8f76fe63cea;hb=ab9d36b614da17d0f3b8ec4f63dfa849d193ff70;hp=611675a661870417ff7d60b11bbf8bd971bb5357;hpb=3421281a654c222339ac9439763e73387f762ad2;p=freeside.git diff --git a/rt/lib/RT/Search/UnrepliedTickets.pm b/rt/lib/RT/Search/UnrepliedTickets.pm index 611675a66..a4fdacd22 100644 --- a/rt/lib/RT/Search/UnrepliedTickets.pm +++ b/rt/lib/RT/Search/UnrepliedTickets.pm @@ -6,9 +6,9 @@ =head1 DESCRIPTION -Find all unresolved tickets owned by the current user where the last correspondence -from a requestor (or ticket creation) is more recent than the last -correspondence from a non-requestor (if there is any). +Find all unresolved tickets owned by the current user where the last +correspondence from a requestor (or ticket creation) is more recent than the +last correspondence from a non-requestor (if there is any). =head1 METHODS @@ -40,6 +40,11 @@ sub Prepare { OPERATOR => '!=', VALUE => 'resolved' ); + $TicketsObj->Limit( + FIELD => 'Status', + OPERATOR => '!=', + VALUE => 'rejected', + ); my $txn_alias = $TicketsObj->JoinTransactions; $TicketsObj->RT::SearchBuilder::Limit( ALIAS => $txn_alias,