[freeside-commits] freeside/httemplate/view/cust_main tickets.html, 1.12.2.2, 1.12.2.3
Mark Wells
mark at wavetail.420.am
Thu Jul 22 16:34:47 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv10683/httemplate/view/cust_main
Modified Files:
Tag: FREESIDE_1_9_BRANCH
tickets.html
Log Message:
option to force default queue for new tickets in cust_main, RT#8889
Index: tickets.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/tickets.html,v
retrieving revision 1.12.2.2
retrieving revision 1.12.2.3
diff -u -w -d -r1.12.2.2 -r1.12.2.3
--- tickets.html 20 Jul 2010 21:33:42 -0000 1.12.2.2
+++ tickets.html 22 Jul 2010 23:34:45 -0000 1.12.2.3
@@ -9,10 +9,15 @@
keys %new_param),'Queue=') %>" + selector.options[selector.selectedIndex].value;
}
</SCRIPT>
-<A id="CreateTicketLink" HREF="">Create new ticket</A>
+<A id="CreateTicketLink" HREF="<% $new_link %>">Create new ticket</A>
in queue
-<SELECT NAME="Queue" id="Queue" onchange="updateTicketLink()">
% my %queues = FS::TicketSystem->queues();
+% if( $conf->exists('ticket_system-force_default_queueid') ) {
+<B><% $queues{$new_param{'Queue'}} %></B>
+<INPUT TYPE="hidden" NAME="Queue" VALUE="<% $new_param{'Queue'} %>">
+% }
+% else {
+<SELECT NAME="Queue" id="Queue" onchange="updateTicketLink()">
% foreach my $queueid ( sort { $queues{$a} cmp $queues{$b} } keys %queues ) {
% #should consider whether the user has ACL to create ticket in each queue
<OPTION VALUE="<% $queueid %>"
@@ -20,8 +25,9 @@
><% $queues{$queueid} |h %>
% }
</SELECT>
-</FORM>
<SCRIPT DEFER TYPE="text/javascript">updateTicketLink();</SCRIPT>
+% }
+</FORM>
<BR>
(<A HREF="<% $open_link %>">View <% $openlabel %> tickets for this customer</A>)
@@ -87,6 +93,7 @@
<%init>
+my( $conf ) = new FS::Conf;
my( $cust_main ) = @_;
my( @tickets ) = $cust_main->tickets;
More information about the freeside-commits
mailing list