From 8c2973184d9e8e357f433b7380c7884454cc0293 Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 22 Jul 2010 23:33:30 +0000 Subject: [PATCH] option to force default queue for new tickets in cust_main, RT#8889 --- FS/FS/Conf.pm | 7 ++++++- httemplate/view/cust_main/tickets.html | 13 ++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index acbd229d5..0d891be25 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -2251,7 +2251,12 @@ and customer address. Include units.', } }, }, - + { + 'key' => 'ticket_system-force_default_queueid', + 'section' => '', + 'description' => 'Disallow queue selection when creating new tickets from customer view.', + 'type' => 'checkbox', + }, { 'key' => 'ticket_system-selfservice_queueid', 'section' => '', diff --git a/httemplate/view/cust_main/tickets.html b/httemplate/view/cust_main/tickets.html index 7a511a962..e90ae5276 100644 --- a/httemplate/view/cust_main/tickets.html +++ b/httemplate/view/cust_main/tickets.html @@ -9,10 +9,15 @@ function updateTicketLink() { keys %new_param),'Queue=') %>" + selector.options[selector.selectedIndex].value; } -Create new ticket +Create new ticket in queue - +% } +% else { + - +% } +
(View <% $openlabel %> tickets for this customer) @@ -87,6 +93,7 @@ function updateTicketLink() { <%init> +my( $conf ) = new FS::Conf; my( $cust_main ) = @_; my( @tickets ) = $cust_main->tickets; -- 2.11.0