From cbccdb069b2b18d0bc9749b953c1aaeba0113335 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 22 Nov 2007 01:03:32 +0000 Subject: [PATCH] usability: don't offer 'Select agent' choice if the dropdown already has a value --- httemplate/edit/cust_main.cgi | 5 +++-- 1 file 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 @@ <% include('/elements/tr-select-agent.html', $cust_main->agentnum, - 'label' => "${r}Agent", - 'empty_label' => 'Select agent', + 'label' => "${r}Agent", + 'empty_label' => 'Select agent', + 'disable_empty' => ( $cust_main->agentnum ? 1 : 0 ), ) %> -- 2.20.1