[freeside-commits] branch FREESIDE_3_BRANCH updated. a552736fc7a29ab6780f4ae745d3dcfd3d79ed73

Ivan ivan at 420.am
Wed Sep 4 22:54:20 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  a552736fc7a29ab6780f4ae745d3dcfd3d79ed73 (commit)
      from  733ca73f21c1f9988bb90f33b2de7476fa01a631 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a552736fc7a29ab6780f4ae745d3dcfd3d79ed73
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Sep 4 22:54:19 2013 -0700

    fix sales person dropdown for single agent, RT#23402

diff --git a/httemplate/elements/tr-select-sales.html b/httemplate/elements/tr-select-sales.html
index b69b3d8..c29e0d7 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) {
 

-----------------------------------------------------------------------

Summary of changes:
 httemplate/elements/tr-select-sales.html |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list