[Bps-public-commit] r10825 - in RT-Extension-SLA: t
ruz at bestpractical.com
ruz at bestpractical.com
Wed Feb 13 23:34:08 EST 2008
Author: ruz
Date: Wed Feb 13 23:34:07 2008
New Revision: 10825
Modified:
RT-Extension-SLA/lib/RT/Extension/SLA.pm
RT-Extension-SLA/t/business_hours.t
RT-Extension-SLA/t/starts.t
Log:
* rename RT::BusinessHours option into RT::ServiceBusinessHours
Modified: RT-Extension-SLA/lib/RT/Extension/SLA.pm
==============================================================================
--- RT-Extension-SLA/lib/RT/Extension/SLA.pm (original)
+++ RT-Extension-SLA/lib/RT/Extension/SLA.pm Wed Feb 13 23:34:07 2008
@@ -188,7 +188,7 @@
In the config you can set one or more work schedules. Use the following
format:
- %RT::BusinessHours = (
+ %RT::ServiceBusinessHours = (
'label to use' => {
... description ...
},
@@ -209,13 +209,13 @@
Resolve => { BusinessMinutes => 60 },
},
-then %RT::BusinessHours should have the corresponding definition:
+then %RT::ServiceBusinessHours should have the corresponding definition:
- %RT::BusinessHours = ( 'work just in Monday' => {
+ %RT::ServiceBusinessHours = ( 'work just in Monday' => {
1 => { Name => 'Monday', Start => '9:00', End => '18:00' }
} );
-Default Business Hours setting is in $RT::BusinessHours{'Default'}.
+Default Business Hours setting is in $RT::ServiceBusinessHours{'Default'}.
=head2 Default service levels
@@ -229,8 +229,8 @@
require Business::Hours;
my $res = new Business::Hours;
- $res->business_hours( %{ $RT::BusinessHours{ $name } } )
- if $RT::BusinessHours{ $name };
+ $res->business_hours( %{ $RT::ServiceBusinessHours{ $name } } )
+ if $RT::ServiceBusinessHours{ $name };
return $res;
}
Modified: RT-Extension-SLA/t/business_hours.t
==============================================================================
--- RT-Extension-SLA/t/business_hours.t (original)
+++ RT-Extension-SLA/t/business_hours.t Wed Feb 13 23:34:07 2008
@@ -36,7 +36,7 @@
},
);
- %RT::BusinessHours = (
+ %RT::ServiceBusinessHours = (
Sunday => {
0 => {
Name => 'Sunday',
Modified: RT-Extension-SLA/t/starts.t
==============================================================================
--- RT-Extension-SLA/t/starts.t (original)
+++ RT-Extension-SLA/t/starts.t Wed Feb 13 23:34:07 2008
@@ -30,7 +30,7 @@
},
},
);
- %RT::BusinessHours = (
+ %RT::ServiceBusinessHours = (
Default => {
1 => {
Name => 'Monday',
More information about the Bps-public-commit
mailing list