rt 4.2.14 (#13852)
[freeside.git] / rt / lib / RT / Condition / QueueChange.pm
index 4764893..08b89cd 100644 (file)
@@ -2,7 +2,7 @@
 #
 # COPYRIGHT:
 #
-# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
 #                                          <sales@bestpractical.com>
 #
 # (Except where explicitly superseded by other copyright notices)
@@ -49,6 +49,7 @@
 package RT::Condition::QueueChange;
 use base 'RT::Condition';
 use strict;
+use warnings;
 
 =head2 IsApplicable
 
@@ -59,17 +60,14 @@ If the queue has changed.
 sub IsApplicable {
     my $self = shift;
     if ($self->TransactionObj->Field eq 'Queue') {
-           return(1);
-    } 
+        return(1);
+    }
     else {
-           return(undef);
+        return(undef);
     }
 }
 
-eval "require RT::Condition::QueueChange_Vendor";
-die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/QueueChange_Vendor.pm});
-eval "require RT::Condition::QueueChange_Local";
-die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/QueueChange_Local.pm});
+RT::Base->_ImportOverlays();
 
 1;