Merge branch 'master' of https://github.com/jgoodman/Freeside
[freeside.git] / rt / lib / RT / Shredder / Plugin / Tickets.pm
index 8b499e3..180c45c 100644 (file)
@@ -2,7 +2,7 @@
 #
 # COPYRIGHT:
 #
-# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC
 #                                          <sales@bestpractical.com>
 #
 # (Except where explicitly superseded by other copyright notices)
@@ -92,7 +92,7 @@ sub TestArgs
     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;
@@ -138,7 +138,7 @@ sub GetLinked
     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 );