[freeside-commits] freeside/httemplate/edit cust_main.cgi, 1.81, 1.82

Ivan,,, ivan at wavetail.420.am
Wed Nov 21 17:03:23 PST 2007


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv28556

Modified Files:
	cust_main.cgi 
Log Message:
usability: don't offer 'Select agent' choice if the dropdown already has a value

Index: cust_main.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main.cgi,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- cust_main.cgi	18 Sep 2007 23:19:28 -0000	1.81
+++ cust_main.cgi	22 Nov 2007 01:03:21 -0000	1.82
@@ -123,9 +123,10 @@
 <!-- agent -->
 
 <% include('/elements/tr-select-agent.html', 
-              'curr_value'  => $cust_main->agentnum,
-              'label'       => "<B>${r}Agent</B>",
-              'empty_label' => 'Select agent',
+              'curr_value'    => $cust_main->agentnum,
+              'label'         => "<B>${r}Agent</B>",
+              'empty_label'   => 'Select agent',
+              'disable_empty' => ( $cust_main->agentnum ? 1 : 0 ),
            )
 %>
 



More information about the freeside-commits mailing list