[Rt-commit] r6110 - in RT-Extension-TicketAging: .
schwern at bestpractical.com
schwern at bestpractical.com
Fri Sep 29 04:41:52 EDT 2006
Author: schwern
Date: Fri Sep 29 04:41:52 2006
New Revision: 6110
Modified:
RT-Extension-TicketAging/ (props changed)
RT-Extension-TicketAging/lib/RT/Extension/TicketAging.pm
Log:
r19458 at Master-Windhund-IV: schwern | 2006-09-29 01:41:18 -0700
RT->Config->Get('TicketAgingFilenameTemplate') returns an empty list, not
empty string, if its not set causing an "Odd number of elements in hash"
inside TestArgs(). Initialize to empty string.
Modified: RT-Extension-TicketAging/lib/RT/Extension/TicketAging.pm
==============================================================================
--- RT-Extension-TicketAging/lib/RT/Extension/TicketAging.pm (original)
+++ RT-Extension-TicketAging/lib/RT/Extension/TicketAging.pm Fri Sep 29 04:41:52 2006
@@ -322,8 +322,9 @@
my $plugin = new RT::Shredder::Plugin;
my ($status, $msg) = $plugin->LoadByName('SQLDump');
return ($status, $msg) unless $status;
+ my $template = RT->Config->Get('TicketAgingFilenameTemplate');
($status, $msg) = $plugin->TestArgs(
- file_name => RT->Config->Get('TicketAgingFilenameTemplate'),
+ file_name => $template || ''
);
return ($status, $msg) unless $status;
More information about the Rt-commit
mailing list