From: ivan Date: Thu, 22 Nov 2007 01:03:21 +0000 (+0000) Subject: usability: don't offer 'Select agent' choice if the dropdown already has a value X-Git-Tag: TRIXBOX_2_6~236 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=d43d067e7e57d396a8534212e5bb1025529285bd usability: don't offer 'Select agent' choice if the dropdown already has a value --- diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index ef304ddfa..579d6cfe3 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -123,9 +123,10 @@ <% include('/elements/tr-select-agent.html', - 'curr_value' => $cust_main->agentnum, - 'label' => "${r}Agent", - 'empty_label' => 'Select agent', + 'curr_value' => $cust_main->agentnum, + 'label' => "${r}Agent", + 'empty_label' => 'Select agent', + 'disable_empty' => ( $cust_main->agentnum ? 1 : 0 ), ) %>