diff options
author | Mark Wells <mark@freeside.biz> | 2015-07-13 20:55:30 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-07-13 20:55:30 -0700 |
commit | d0b51206d9d8ba21b820df6be0a342179fea68aa (patch) | |
tree | ebaf2dbe8f92cc605f9bd6e7b5c14e1980cea47d /rt/lib/RT/Action/CreateTickets.pm | |
parent | 204aaf4c7b3ba6a2416a4133ba0079305b4f4bdc (diff) |
remove "create ticket on custom field change" (#10139) to avoid conflicts with RT 4.2
Diffstat (limited to 'rt/lib/RT/Action/CreateTickets.pm')
-rw-r--r-- | rt/lib/RT/Action/CreateTickets.pm | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/rt/lib/RT/Action/CreateTickets.pm b/rt/lib/RT/Action/CreateTickets.pm index 03bc21255..d19f152d0 100644 --- a/rt/lib/RT/Action/CreateTickets.pm +++ b/rt/lib/RT/Action/CreateTickets.pm @@ -733,7 +733,6 @@ sub ParseLines { FinalPriority => $args{'finalpriority'} || 0, SquelchMailTo => $args{'squelchmailto'}, Type => $args{'type'}, - $self->Rules ); if ( $args{content} ) { @@ -1140,7 +1139,10 @@ sub UpdateCustomFields { } foreach my $value (@values) { - next unless length($value); + next if $ticket->CustomFieldValueIsEmpty( + Field => $cf, + Value => $value, + ); my ( $val, $msg ) = $ticket->AddCustomFieldValue( Field => $cf, Value => $value @@ -1214,24 +1216,6 @@ sub PostProcess { } -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 - } - ) -} - RT::Base->_ImportOverlays(); 1; |