diff options
author | ivan <ivan> | 2007-11-22 01:03:32 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-11-22 01:03:32 +0000 |
commit | cbccdb069b2b18d0bc9749b953c1aaeba0113335 (patch) | |
tree | fc1cbf90cdade82de3ea14b105293bc8846dbc2f | |
parent | ea79625689e577729fe54e93a9b326f506c92929 (diff) |
usability: don't offer 'Select agent' choice if the dropdown already has a value
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index bca573862..5ab605f5d 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -123,8 +123,9 @@ <!-- agent --> <% include('/elements/tr-select-agent.html', $cust_main->agentnum, - 'label' => "<B>${r}Agent</B>", - 'empty_label' => 'Select agent', + 'label' => "<B>${r}Agent</B>", + 'empty_label' => 'Select agent', + 'disable_empty' => ( $cust_main->agentnum ? 1 : 0 ), ) %> |