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

ruz at bestpractical.com ruz at bestpractical.com
Thu Feb 14 01:48:21 EST 2008


Author: ruz
Date: Thu Feb 14 01:48:20 2008
New Revision: 10826

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

Log:
* load global field if local is not applied

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	Thu Feb 14 01:48:20 2008
@@ -312,7 +312,9 @@
     unless ( $args{'Ticket'} ) {
         return RT::CustomField->new( $RT::SystemUser );
     }
-    return $args{'Ticket'}->QueueObj->CustomField( $args{'CustomField'} );
+    my $cfs = $args{'Ticket'}->QueueObj->TicketCustomFields;
+    $cfs->Limit( FIELD => 'Name', VALUE => $args{'CustomField'} );
+    return $cfs->First || RT::CustomField->new( $RT::SystemUser );
 }
 
 sub GetDefaultServiceLevel {



More information about the Bps-public-commit mailing list