projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b46d1bb
)
fix bug in debug mode, #13853
author
mark
<mark>
Tue, 27 Dec 2011 02:07:36 +0000
(
02:07
+0000)
committer
mark
<mark>
Tue, 27 Dec 2011 02:07:36 +0000
(
02:07
+0000)
FS/FS/Cron/rt_tasks.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Cron/rt_tasks.pm
b/FS/FS/Cron/rt_tasks.pm
index
4977eb2
..
fd2a718
100644
(file)
--- a/
FS/FS/Cron/rt_tasks.pm
+++ b/
FS/FS/Cron/rt_tasks.pm
@@
-31,9
+31,6
@@
sub rt_daily {
my $system = $FS::TicketSystem::system;
return if $system ne 'RT_Internal';
my $system = $FS::TicketSystem::system;
return if $system ne 'RT_Internal';
- $DEBUG = 1 if $opt{'v'};
- RT::Config->Set( LogToScreen => 'debug' ) if $DEBUG;
-
# if -d or -y is in use, bail out. There's no reliable way to tell RT
# to use an alternate system time.
if ( $opt{'d'} or $opt{'y'} ) {
# if -d or -y is in use, bail out. There's no reliable way to tell RT
# to use an alternate system time.
if ( $opt{'d'} or $opt{'y'} ) {
@@
-46,6
+43,9
@@
sub rt_daily {
my $CurrentUser = $session->{'CurrentUser'}
or die "Failed to create RT session";
my $CurrentUser = $session->{'CurrentUser'}
or die "Failed to create RT session";
+ $DEBUG = 1 if $opt{'v'};
+ RT::Config->Set( LogToScreen => 'debug' ) if $DEBUG;
+
# load some modules that aren't handled in FS::TicketSystem
foreach (qw(
Search::ActiveTicketsInQueue
# load some modules that aren't handled in FS::TicketSystem
foreach (qw(
Search::ActiveTicketsInQueue