[Bps-public-commit] r9469 - RT-Extension-SLA/lib/RT/Extension

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Oct 26 08:07:33 EDT 2007


Author: sunnavy
Date: Fri Oct 26 08:07:31 2007
New Revision: 9469

Modified:
   RT-Extension-SLA/lib/RT/Extension/SLA.pm

Log:
business_hours accept hash, not hash ref

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	Fri Oct 26 08:07:31 2007
@@ -189,7 +189,7 @@
 
     if ( $args{'Time'} and my $tmp = $meta->{'OutOfHours'}{ $args{'Type'} } ) {
         my $bhours =
-            $self->BusinessHours($RT::BusinessHours{$meta->{BusinessHours}});
+            $self->BusinessHours(%{$RT::BusinessHours{$meta->{BusinessHours}}});
         if ( $bhours->first_after( $args{'Time'} ) != $args{'Time'} ) {
             foreach ( qw(RealMinutes BusinessMinutes) ) {
                 next unless $tmp->{ $_ };



More information about the Bps-public-commit mailing list