summaryrefslogtreecommitdiff
path: root/rt/lib/RT/Condition/UserDefined.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rt/lib/RT/Condition/UserDefined.pm')
-rw-r--r--rt/lib/RT/Condition/UserDefined.pm12
1 files changed, 4 insertions, 8 deletions
diff --git a/rt/lib/RT/Condition/UserDefined.pm b/rt/lib/RT/Condition/UserDefined.pm
index f4d2e27..f339e9a 100644
--- a/rt/lib/RT/Condition/UserDefined.pm
+++ b/rt/lib/RT/Condition/UserDefined.pm
@@ -1,8 +1,8 @@
# BEGIN BPS TAGGED BLOCK {{{
#
# COPYRIGHT:
-#
-# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC
+#
+# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC
# <jesse@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@ -45,15 +45,10 @@
# those contributions and any derivatives thereof.
#
# END BPS TAGGED BLOCK }}}
-
package RT::Condition::UserDefined;
-
-use RT::Condition::Generic;
-
+use base 'RT::Condition';
use strict;
-use vars qw/@ISA/;
-@ISA = qw(RT::Condition::Generic);
=head2 IsApplicable
@@ -64,6 +59,7 @@ This happens on every transaction. it's always applicable
sub IsApplicable {
my $self = shift;
+ local $@;
my $retval = eval $self->ScripObj->CustomIsApplicableCode;
if ($@) {
$RT::Logger->error("Scrip ".$self->ScripObj->Id. " IsApplicable failed: ".$@);