[freeside-commits] freeside/httemplate/edit agent.cgi,1.20,1.21

Ivan,,, ivan at wavetail.420.am
Tue May 5 15:02:30 PDT 2009


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv12306/httemplate/edit

Modified Files:
	agent.cgi 
Log Message:
hide agent.invoice_template edit by default, with a config to turn back on, RT#5218

Index: agent.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/agent.cgi,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- agent.cgi	13 Nov 2008 02:22:04 -0000	1.20
+++ agent.cgi	5 May 2009 22:02:28 -0000	1.21
@@ -46,13 +46,21 @@
     <TD><INPUT TYPE="checkbox" NAME="disabled" VALUE="Y"<% $agent->disabled eq 'Y' ? ' CHECKED' : '' %>></TD>
   </TR>
 
+% if ( $conf->exists('agent-invoice_template') ) {
+
   <% include('/elements/tr-select-invoice_template.html',
                'label'      => 'Invoice template',
                'field'      => 'invoice_template',
                'curr_value' => $agent->invoice_template,
             )
   %>
-  
+
+% } else {
+
+  <INPUT TYPE="hidden" NAME="invoice_template" VALUE="<% $agent->invoice_template %>">
+
+% }
+
 % if ( $conf->config('ticket_system') ) {
 %    my $default_queueid = $conf->config('ticket_system-default_queueid');
 %    my $default_queue = FS::TicketSystem->queue($default_queueid);



More information about the freeside-commits mailing list