X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FSearch%2FActiveTicketsInQueue.pm;h=9b2e7f6cad26c352f466a5c746676ffc93198a0a;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=8a9711854193c51caf171034e039cf802b076e22;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/lib/RT/Search/ActiveTicketsInQueue.pm b/rt/lib/RT/Search/ActiveTicketsInQueue.pm index 8a9711854..9b2e7f6ca 100644 --- a/rt/lib/RT/Search/ActiveTicketsInQueue.pm +++ b/rt/lib/RT/Search/ActiveTicketsInQueue.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -66,6 +66,7 @@ Find all active tickets in the queue named in the argument passed in package RT::Search::ActiveTicketsInQueue; use strict; +use warnings; use base qw(RT::Search); @@ -78,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); }