From 9327f3d24c49da3200413966d153e8415c26e744 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 4 Sep 2013 22:54:18 -0700 Subject: [PATCH] fix sales person dropdown for single agent, RT#23402 --- httemplate/elements/tr-select-sales.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/httemplate/elements/tr-select-sales.html b/httemplate/elements/tr-select-sales.html index b69b3d8b6..c29e0d70c 100644 --- a/httemplate/elements/tr-select-sales.html +++ b/httemplate/elements/tr-select-sales.html @@ -81,7 +81,11 @@ Example: function <% $field %>_agentnum_changed(what) { what.form.<% $field %>.disabled = 'disabled'; //disable sales dropdown - agentnum = what.options[what.selectedIndex].value; + if ( what.type == 'hidden' ) { + agentnum = what.value; + } else { + agentnum = what.options[what.selectedIndex].value; + } function update_<% $field %>(sales) { -- 2.11.0