projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move svc_circuit from Access to Telephony
[freeside.git]
/
rt
/
bin
/
rt-crontool.in
diff --git
a/rt/bin/rt-crontool.in
b/rt/bin/rt-crontool.in
index
86251a3
..
e202698
100644
(file)
--- a/
rt/bin/rt-crontool.in
+++ b/
rt/bin/rt-crontool.in
@@
-3,7
+3,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
2
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
4
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-47,6
+47,7
@@
#
# END BPS TAGGED BLOCK }}}
use strict;
#
# END BPS TAGGED BLOCK }}}
use strict;
+use warnings;
use Carp;
# fix lib paths, some may be relative
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);
#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
);
TicketsObj => $tickets,
Argument => $search_arg,
CurrentUser => $CurrentUser
);
-
$search->Prepare();
$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);
#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 )
sub help {
print loc( "[_1] is a tool to act on tickets from an external scheduling tool, such as cron.", $0 )