diff options
Diffstat (limited to 'rt/lib/RT/Condition.pm')
| -rwxr-xr-x | rt/lib/RT/Condition.pm | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/rt/lib/RT/Condition.pm b/rt/lib/RT/Condition.pm index 458bf8052..2774fe823 100755 --- a/rt/lib/RT/Condition.pm +++ b/rt/lib/RT/Condition.pm @@ -210,6 +210,19 @@ sub IsApplicable { } # }}} +sub Options { + my $self = shift; + return(); +} + +sub Rules { + my $self = shift; + return () if !$self->ScripObj or !$self->ScripObj->ConditionRules; + # By default, option names and values are on consecutive lines. + # Override this if you need anything more interesting. + return(split "\n", $self->ScripObj->ConditionRules); +} + # {{{ sub DESTROY sub DESTROY { my $self = shift; @@ -225,6 +238,9 @@ sub DESTROY { # }}} -RT::Base->_ImportOverlays(); +eval "require RT::Condition_Vendor"; +die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition_Vendor.pm}); +eval "require RT::Condition_Local"; +die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition_Local.pm}); 1; |
