diff options
Diffstat (limited to 'rt/bin/rt-crontool.in')
-rw-r--r-- | rt/bin/rt-crontool.in | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/rt/bin/rt-crontool.in b/rt/bin/rt-crontool.in index 86251a39f..5498da751 100644 --- a/rt/bin/rt-crontool.in +++ b/rt/bin/rt-crontool.in @@ -3,7 +3,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC # <sales@bestpractical.com> # # (Except where explicitly superseded by other copyright notices) @@ -47,6 +47,7 @@ # # END BPS TAGGED BLOCK }}} use strict; +use warnings; use Carp; # fix lib paths, some may be relative @@ -153,17 +154,13 @@ my $void_scrip_action = RT::ScripAction->new( $CurrentUser ); #find a bunch of tickets my $tickets = RT::Tickets->new($CurrentUser); -my $search = $search->new( +$search = $search->new( TicketsObj => $tickets, Argument => $search_arg, CurrentUser => $CurrentUser ); - $search->Prepare(); -# TicketsFound is an RT::Tickets object -my $tickets = $search->TicketsObj; - #for each ticket we've found while ( my $ticket = $tickets->Next() ) { print $ticket->Id() . ":\n" if ($verbose); @@ -310,18 +307,6 @@ sub load_module { } - -# =head2 loc LIST -# -# Localize this string, with the current user's currentuser object -# -# =cut - -sub loc { - $CurrentUser->loc(@_); -} - - sub help { print loc( "[_1] is a tool to act on tickets from an external scheduling tool, such as cron.", $0 ) |