[freeside-commits] freeside/rt/lib/RT/Action CreateTickets.pm, 1.1.1.9, 1.1.1.9.4.1
Mark Wells
mark at wavetail.420.am
Wed Nov 17 13:26:42 PST 2010
Update of /home/cvs/cvsroot/freeside/rt/lib/RT/Action
In directory wavetail.420.am:/tmp/cvs-serv30035/lib/RT/Action
Modified Files:
Tag: FREESIDE_2_1_BRANCH
CreateTickets.pm
Log Message:
create ticket on custom field change, RT#10139
Index: CreateTickets.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT/Action/CreateTickets.pm,v
retrieving revision 1.1.1.9
retrieving revision 1.1.1.9.4.1
diff -u -w -d -r1.1.1.9 -r1.1.1.9.4.1
--- CreateTickets.pm 31 Dec 2009 13:10:31 -0000 1.1.1.9
+++ CreateTickets.pm 17 Nov 2010 21:26:40 -0000 1.1.1.9.4.1
@@ -762,6 +762,7 @@
FinalPriority => $args{'finalpriority'} || 0,
SquelchMailTo => $args{'squelchmailto'},
Type => $args{'type'},
+ $self->Rules
);
if ( $args{content} ) {
@@ -1238,6 +1239,24 @@
}
+sub Options {
+ my $self = shift;
+ my $queues = RT::Queues->new($self->CurrentUser);
+ $queues->UnLimit;
+ my @names;
+ while (my $queue = $queues->Next) {
+ push @names, $queue->Id, $queue->Name;
+ }
+ return (
+ {
+ 'name' => 'Queue',
+ 'label' => 'In queue',
+ 'type' => 'select',
+ 'options' => \@names
+ }
+ )
+}
+
eval "require RT::Action::CreateTickets_Vendor";
die $@ if ( $@ && $@ !~ qr{^Can't locate RT/Action/CreateTickets_Vendor.pm} );
eval "require RT::Action::CreateTickets_Local";
More information about the freeside-commits
mailing list