[Bps-public-commit] r10827 - RT-Extension-SLA/lib/RT/Condition

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


Author: ruz
Date: Thu Feb 14 01:48:49 2008
New Revision: 10827

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

Log:
* use method we have instead of duplicating

Modified: RT-Extension-SLA/lib/RT/Condition/SLA.pm
==============================================================================
--- RT-Extension-SLA/lib/RT/Condition/SLA.pm	(original)
+++ RT-Extension-SLA/lib/RT/Condition/SLA.pm	Thu Feb 14 01:48:49 2008
@@ -23,9 +23,9 @@
     
     return 0 unless $txn->Type eq 'CustomField';
 
-    my $cf = $self->TicketObj->QueueObj->CustomField( $cf_name );
+    my $cf = $self->GetCustomField( $cf_name );
     unless ( $cf->id ) {
-        $RT::Logger->error("Couldn't load the '$cf_name' field");
+        $RT::Logger->error("Custom field '$cf_name' is not applied to ticket #". $self->TicketObj->id);
         return 0;
     }
     return 0 unless $cf->id == $txn->Field;



More information about the Bps-public-commit mailing list