[freeside-commits] freeside/FS/FS/part_export rt_ticket.pm, 1.3, 1.3.2.1
Mark Wells
mark at wavetail.420.am
Mon Nov 8 13:46:15 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv14859/FS/FS/part_export
Modified Files:
Tag: FREESIDE_2_1_BRANCH
rt_ticket.pm
Log Message:
ticket export for svc_phone, domain, broadband, RT#10363
Index: rt_ticket.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/rt_ticket.pm,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -w -d -r1.3 -r1.3.2.1
--- rt_ticket.pm 30 Oct 2010 22:44:53 -0000 1.3
+++ rt_ticket.pm 8 Nov 2010 21:46:13 -0000 1.3.2.1
@@ -122,19 +122,24 @@
);
%info = (
- 'svc' => [qw( svc_acct )], #others?
+ 'svc' => [qw( svc_acct svc_broadband svc_phone svc_domain )],
'desc' =>
'Create an RT ticket',
'options' => \%options,
'nodomain' => '',
- 'notes' => <<'END'
+ 'notes' => '
Create a ticket in RT. The subject and body of the ticket
-will be generated from a message template.
-END
+ will be generated from a message template.'
);
sub _export_ticket {
my( $self, $action, $svc ) = (shift, shift, shift);
+ my $conf = new FS::Conf;
+ die "rt_ticket export - no ticket system configured"
+ unless $conf->config('ticket_system');
+
+ FS::TicketSystem->init();
+
my $msgnum = $self->option($action.'_template');
return if !$msgnum;
More information about the freeside-commits
mailing list