[freeside-commits] branch master updated. 9327f3d24c49da3200413966d153e8415c26e744

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


The branch, master has been updated
       via  9327f3d24c49da3200413966d153e8415c26e744 (commit)
      from  4d10679f7b649d9343f74503b14d17fc2831c40f (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 9327f3d24c49da3200413966d153e8415c26e744
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Sep 4 22:54:18 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