},
{
+ 'key' => 'ticket_system-requestor',
+ 'section' => '',
+ 'description' => 'Email address to use as the requestor for new tickets. If blank, the customer\'s invoicing address(es) will be used.',
+ 'type' => 'text',
+ },
+
+ {
'key' => 'ticket_system-priority_reverse',
'section' => '',
'description' => 'Enable this to consider lower numbered priorities more important. A bad habit we picked up somewhere. You probably want to avoid it and use the default.',
$cust_main = qsearchs('cust_main', { 'custnum' => $custnum } );
}
+ # explicit $requestors > config option > invoicing_list
+ $requestors = $conf->config('ticket_system-requestor')
+ if !$requestors;
+ $requestors = $cust_main->invoicing_list_emailonly_scalar
+ if (!$requestors) and defined($cust_main);
+
my %param = (
'Queue' => ($cust_main->agent->ticketing_queueid || $default_queueid),
'new-MemberOf'=> "freeside://freeside/cust_main/$custnum",
<% include('/elements/mcp_lint.html', 'cust_main'=>$cust_main) %>
</TD>
<TD CLASS="grid" BGCOLOR="<% $bgcolor %>" ALIGN="right">
- <FONT SIZE="-1"><A HREF="<% FS::TicketSystem->href_new_ticket($cust_main, join(', ', grep { $_ !~ /^(POST|FAX)$/ } $cust_main->invoicing_list ) ) %>">(new ticket)</A></FONT>
+ <FONT SIZE="-1">
+ <A HREF="<% FS::TicketSystem->href_new_ticket($cust_main) %>">(new ticket)</A>
+ </FONT>
</TD>
% foreach my $priority ( @custom_priorities, '' ) {
{ 'statuses' => [ 'resolved' ] }
);
-my( $new_base, %new_param ) = FS::TicketSystem->href_params_new_ticket(
- $cust_main,
- join(', ', $cust_main->invoicing_list_emailonly ) );
+my( $new_base, %new_param ) =
+ FS::TicketSystem->href_params_new_ticket( $cust_main );
-my $new_link = FS::TicketSystem->href_new_ticket(
- $cust_main,
- join(', ', $cust_main->invoicing_list_emailonly )
- );
+my $new_link = FS::TicketSystem->href_new_ticket( $cust_main );
</%init>