diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-09-04 22:54:19 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-09-04 22:54:19 -0700 |
commit | a552736fc7a29ab6780f4ae745d3dcfd3d79ed73 (patch) | |
tree | 782217d8d6480d6b12b4cf1497e9897321278a37 | |
parent | 733ca73f21c1f9988bb90f33b2de7476fa01a631 (diff) |
fix sales person dropdown for single agent, RT#23402
-rw-r--r-- | httemplate/elements/tr-select-sales.html | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |