summaryrefslogtreecommitdiff
path: root/rt/lib/RT/Condition.pm
diff options
context:
space:
mode:
authormark <mark>2010-11-17 20:44:11 +0000
committermark <mark>2010-11-17 20:44:11 +0000
commit5ef064aeca4a22dbe38b538e65d512d5d398fe2f (patch)
tree81959e7fd86bc537b61cf530983df26b01ca4fba /rt/lib/RT/Condition.pm
parent2a874cdff2e2bc0d5d6920aae306d5b7c3d4aa97 (diff)
create ticket on custom field change, RT#10139
Diffstat (limited to 'rt/lib/RT/Condition.pm')
-rwxr-xr-xrt/lib/RT/Condition.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/rt/lib/RT/Condition.pm b/rt/lib/RT/Condition.pm
index be7c4c56d..dfd58e757 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;