hide unreplied status for Rejected tickets, #41670
authorMark Wells <mark@freeside.biz>
Sat, 11 Jun 2016 19:23:54 +0000 (12:23 -0700)
committerMark Wells <mark@freeside.biz>
Mon, 13 Jun 2016 20:15:23 +0000 (13:15 -0700)
rt/lib/RT/Search/UnrepliedTickets.pm

index 611675a..a4fdacd 100644 (file)
@@ -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,