X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Frt_ticket.pm;h=7c3ebb92013a43cecad38811fcb3feb8e431c91a;hp=b53b7da8aa4f48ff4c7d668f8d9648e46c3da679;hb=1a320aa8f679a355bd3678ccceb5d7ecf7b0aeba;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c diff --git a/FS/FS/part_export/rt_ticket.pm b/FS/FS/part_export/rt_ticket.pm index b53b7da8a..7c3ebb920 100644 --- a/FS/FS/part_export/rt_ticket.pm +++ b/FS/FS/part_export/rt_ticket.pm @@ -21,7 +21,7 @@ my %template_select = ( %templates = (0 => '', map { $_->msgnum, $_->msgname } qsearch({ table => 'msg_template', - hashref => {}, + hashref => { disabled => '' }, order_by => 'ORDER BY msgnum ASC' }) ); @@ -36,6 +36,7 @@ my %queue_select = ( $queues{$_[0]}; }, option_values => sub { + return (0) unless FS::Conf->new->config('ticket_system'); %queues = (0 => '', FS::TicketSystem->queues()); sort {$queues{$a} cmp $queues{$b}} keys %queues; }, @@ -122,11 +123,14 @@ tie my %options, 'Tie::IxHash', ( ); %info = ( - 'svc' => [qw( svc_acct svc_broadband svc_phone svc_domain )], + 'svc' => [qw( svc_acct svc_broadband svc_phone svc_domain svc_dsl + svc_circuit svc_fiber + )], 'desc' => 'Create an RT ticket', 'options' => \%options, 'nodomain' => '', + 'no_machine' => 1, 'notes' => ' Create a ticket in RT. The subject and body of the ticket will be generated from a message template.'