[freeside-commits] freeside/rt/lib/RT Action.pm, 1.1.1.1, 1.2 Condition.pm, 1.1.1.1, 1.2 Scrip_Overlay.pm, 1.1.1.11, 1.2
Mark Wells
mark at wavetail.420.am
Wed Nov 17 12:44:13 PST 2010
Update of /home/cvs/cvsroot/freeside/rt/lib/RT
In directory wavetail.420.am:/tmp/cvs-serv20693/lib/RT
Modified Files:
Action.pm Condition.pm Scrip_Overlay.pm
Log Message:
create ticket on custom field change, RT#10139
Index: Action.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/Action.pm,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -w -d -r1.1.1.1 -r1.2
--- Action.pm 31 Dec 2009 13:10:08 -0000 1.1.1.1
+++ Action.pm 17 Nov 2010 20:44:11 -0000 1.2
@@ -204,6 +204,17 @@
}
# }}}
+sub Options {
+ my $self = shift;
+ return();
+}
+
+sub Rules {
+ my $self = shift;
+ return () if !$self->ScripObj or !$self->ScripObj->ActionRules;
+ return(split "\n", $self->ScripObj->ActionRules);
+}
+
# {{{ sub DESTROY
sub DESTROY {
my $self = shift;
Index: Condition.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/Condition.pm,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -w -d -r1.1.1.1 -r1.2
--- Condition.pm 31 Dec 2009 13:10:15 -0000 1.1.1.1
+++ Condition.pm 17 Nov 2010 20:44:11 -0000 1.2
@@ -210,6 +210,19 @@
}
# }}}
+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;
Index: Scrip_Overlay.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/Scrip_Overlay.pm,v
retrieving revision 1.1.1.11
retrieving revision 1.2
diff -u -w -d -r1.1.1.11 -r1.2
--- Scrip_Overlay.pm 18 May 2010 18:41:15 -0000 1.1.1.11
+++ Scrip_Overlay.pm 17 Nov 2010 20:44:11 -0000 1.2
@@ -103,6 +103,8 @@
CustomPrepareCode => undef,
CustomCommitCode => undef,
CustomIsApplicableCode => undef,
+ ConditionRules => undef,
+ ActionRules => undef,
@_
);
@@ -162,6 +164,8 @@
CustomPrepareCode => $args{'CustomPrepareCode'},
CustomCommitCode => $args{'CustomCommitCode'},
CustomIsApplicableCode => $args{'CustomIsApplicableCode'},
+ ConditionRules => $args{'ConditionRules'},
+ ActionRules => $args{'ActionRules'},
);
if ( $id ) {
return ( $id, $self->loc('Scrip Created') );
More information about the freeside-commits
mailing list