Putting 4.2.0 on top of 4.0.17
[usit-rt.git] / lib / RT / Search / ActiveTicketsInQueue.pm
index da1cdb6..9e3e88a 100644 (file)
@@ -79,10 +79,7 @@ sub Prepare  {
   my $self = shift;
 
   $self->TicketsObj->LimitQueue(VALUE => $self->Argument);
-
-  foreach my $status (RT::Queue->ActiveStatusArray()) {
-        $self->TicketsObj->LimitStatus(VALUE => $status);
-  }
+  $self->TicketsObj->LimitToActiveStatus;
 
   return(1);
 }