#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
my %args = @_;
my $queue;
if( $args{'query'} ) {
- my $objs = RT::Tickets->new( $RT::SystemUser );
+ my $objs = RT::Tickets->new( RT->SystemUser );
$objs->{'allow_deleted_search'} = 1;
my ($status, $msg) = $objs->FromSQL( $args{'query'} );
return( 0, "Bad query argument, error: $msg" ) unless $status;
if ( $self->{'opt'}{'apply_query_to_linked'} ) {
$query .= " AND ( ". $self->{'opt'}{'query'} ." )";
}
- my $objs = RT::Tickets->new( $RT::SystemUser );
+ my $objs = RT::Tickets->new( RT->SystemUser );
$objs->{'allow_deleted_search'} = 1;
$objs->FromSQL( $query );
$self->FetchNext( $objs, 1 );