summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2007-11-22 01:03:21 +0000
committerivan <ivan>2007-11-22 01:03:21 +0000
commitd43d067e7e57d396a8534212e5bb1025529285bd (patch)
tree64e2b00b4ea753f263bb711a79ff89ec09ddbf77 /httemplate/edit
parent153c566218badbebd112b6022cf4f8798cd4e815 (diff)
usability: don't offer 'Select agent' choice if the dropdown already has a value
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-xhttemplate/edit/cust_main.cgi7
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 ),
)
%>