[Rt-commit] r4512 - in rtir/branches/1.9-EXPERIMENTAL: lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Thu Feb 9 09:13:45 EST 2006
Author: ruz
Date: Thu Feb 9 09:13:45 2006
New Revision: 4512
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/lib/RT/IR.pm
Log:
r683 at cubic-pc: cubic | 2006-02-09 17:16:24 +0300
r677 at cubic-pc: cubic | 2006-02-09 16:59:06 +0300
* typo in config handling code
Modified: rtir/branches/1.9-EXPERIMENTAL/lib/RT/IR.pm
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/lib/RT/IR.pm (original)
+++ rtir/branches/1.9-EXPERIMENTAL/lib/RT/IR.pm Thu Feb 9 09:13:45 2006
@@ -55,7 +55,7 @@
my $bizhours = new Business::Hours;
if (RT->Config->Get('BusinessHours')) {
- $bizhours->business_hours(%RT->Config->Get('BusinessHours'));
+ $bizhours->business_hours( RT->Config->Get('BusinessHours') );
}
return $bizhours;
@@ -84,11 +84,11 @@
$SLAObj->SetBusinessHours($bh);
foreach my $key (keys %RT->Config->Get('SLA')) {
- if (RT->Config->Get('SLA')->{$key} =~ /^\d+$/) {
- $SLAObj->Add($key, ( BusinessMinutes => RT->Config->Get('SLA')->{$key} ));
- } else {
- $SLAObj->Add($key, %{RT->Config->Get('SLA')->{$key}} );
- }
+ if (RT->Config->Get('SLA')->{$key} =~ /^\d+$/) {
+ $SLAObj->Add($key, ( BusinessMinutes => RT->Config->Get('SLA')->{$key} ));
+ } else {
+ $SLAObj->Add($key, %{RT->Config->Get('SLA')->{$key}} );
+ }
}
return $SLAObj;
More information about the Rt-commit
mailing list