diff options
author | ivan <ivan> | 2007-11-22 01:03:21 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-11-22 01:03:21 +0000 |
commit | d43d067e7e57d396a8534212e5bb1025529285bd (patch) | |
tree | 64e2b00b4ea753f263bb711a79ff89ec09ddbf77 /httemplate/edit/cust_main.cgi | |
parent | 153c566218badbebd112b6022cf4f8798cd4e815 (diff) |
usability: don't offer 'Select agent' choice if the dropdown already has a value
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
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 @@ <!-- 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 ), ) %> |