[Bps-public-commit] RT-Extension-Nagios branch, master, updated. 5585766a4c651dd328574d8e7695953d8cbe85a9

Shawn M Moore sartak at bestpractical.com
Tue Apr 5 10:26:25 EDT 2011


(11/04/05 10:09), ? sunnavy wrote:

> +        my @active = RT::Queue->ActiveStatusArray();
> +        for my $active (@active) {
> +            $tickets->LimitStatus(
> +                VALUE    =>  $active,
> +                OPERATOR =>  '=',
> +            );
> +        }

Seeing this code prompted me to add $tickets->LimitToActiveStatus in the 
4.2/active-status branch off master. You can't use it yet obviously, but 
some day..

Since this logic is localized to one place, it should be straightforward 
to make LimitToActiveStatus respect queue lifecycles (if the Tickets 
object is limited to a set of queues) so we don't grab global active 
statuses.

Shawn



More information about the Bps-public-commit mailing list