summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authormark <mark>2011-03-04 02:26:15 +0000
committermark <mark>2011-03-04 02:26:15 +0000
commitbd4cf157ffed8f1191724c1975866c3d21fb30df (patch)
tree69c671672da4d5ddccc05de5a392bd8cb10da786 /FS
parent93ccbad65ffe1726adc038d8e4e05c4100b0c11c (diff)
option to override requestor in new tickets, #7777
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Conf.pm7
-rw-r--r--FS/FS/TicketSystem/RT_External.pm6
2 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index d42956bf2..00b0cec3c 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -2570,6 +2570,13 @@ and customer address. Include units.',
},
{
+ '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.',
diff --git a/FS/FS/TicketSystem/RT_External.pm b/FS/FS/TicketSystem/RT_External.pm
index 2995b88a4..8a8c3ffb4 100644
--- a/FS/FS/TicketSystem/RT_External.pm
+++ b/FS/FS/TicketSystem/RT_External.pm
@@ -285,6 +285,12 @@ sub href_params_new_ticket {
$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",