[Rt-commit] r5774 - in RT-Action-LinearEscalate: .

kevinr at bestpractical.com kevinr at bestpractical.com
Tue Aug 15 14:22:40 EDT 2006


Author: kevinr
Date: Tue Aug 15 14:22:40 2006
New Revision: 5774

Modified:
   RT-Action-LinearEscalate/   (props changed)
   RT-Action-LinearEscalate/lib/RT/Action/LinearEscalate.pm

Log:
 r23212 at SAD-GIRL-IN-SNOW:  kevinr | 2006-08-15 14:15:58 -0400
 * We should only be using the results of a match if the match has actually 
 occurred


Modified: RT-Action-LinearEscalate/lib/RT/Action/LinearEscalate.pm
==============================================================================
--- RT-Action-LinearEscalate/lib/RT/Action/LinearEscalate.pm	(original)
+++ RT-Action-LinearEscalate/lib/RT/Action/LinearEscalate.pm	Tue Aug 15 14:22:40 2006
@@ -198,13 +198,14 @@
     my ( $val, $msg );
 
     #testing purposes only, it's a dirty ugly hack
-    $self->Argument =~ /RecordTransaction:(\d); UpdateLastUpdated:(\d)/;
-    $RecordTransaction = (defined $1 ? $1 : $RecordTransaction);
-    $UpdateLastUpdated = (defined $2 ? $2 : $UpdateLastUpdated);
-    $RT::Logger->warning("Overrode RecordTransaction: $RecordTransaction") 
-        if defined $1;
-    $RT::Logger->warning("Overrode UpdateLastUpdated: $UpdateLastUpdated") 
-        if defined $2;
+    if ($self->Argument =~ /RecordTransaction:(\d); UpdateLastUpdated:(\d)/) {
+        $RecordTransaction = (defined $1 ? $1 : $RecordTransaction);
+        $UpdateLastUpdated = (defined $2 ? $2 : $UpdateLastUpdated);
+        $RT::Logger->warning("Overrode RecordTransaction: $RecordTransaction") 
+            if defined $1;
+        $RT::Logger->warning("Overrode UpdateLastUpdated: $UpdateLastUpdated") 
+            if defined $2;
+    }
 
     unless ($RecordTransaction) {
         unless ($UpdateLastUpdated) {


More information about the Rt-commit mailing list