[freeside-commits] branch master updated. cb17f80a628d5d0d50b740ad92a3fcfb3946e6ca

Mark Wells mark at 420.am
Sat Jul 14 16:32:34 PDT 2012


The branch, master has been updated
       via  cb17f80a628d5d0d50b740ad92a3fcfb3946e6ca (commit)
      from  1baa2c61623bab583557554996d43551f784307e (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 cb17f80a628d5d0d50b740ad92a3fcfb3946e6ca
Author: Mark Wells <mark at freeside.biz>
Date:   Sat Jul 14 16:26:08 2012 -0700

    fix an error message in quick payment entry, from #17356

diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html
index 79443dc..75e682d 100644
--- a/httemplate/elements/customer-table.html
+++ b/httemplate/elements/customer-table.html
@@ -203,7 +203,11 @@ Example:
 
       var customerArrayArray = eval('(' + customers + ')') || [];
 
-      if ( customerArrayArray.length == 1 ) {
+      if ( customerArrayArray.length == 0 ) {
+
+        update_customer(searchrow, []);
+
+      } else if ( customerArrayArray.length == 1 ) {
 
         update_customer(searchrow, customerArrayArray[0]);
 % if ( $opt{custnum_update_callback} ) {
@@ -277,7 +281,11 @@ Example:
       custnum_obj.disabled = false;
       custnum_obj.style.backgroundColor = '#ffffff';
 
-      if ( customerArrayArray.length == 1 ) {
+      if ( customerArrayArray.length == 0 ) {
+
+        update_customer(searchrow, []);
+
+      } else if ( customerArrayArray.length == 1 ) {
 
         update_customer(searchrow, customerArrayArray[0]);
 % if ( $opt{custnum_update_callback} ) {

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

Summary of changes:
 httemplate/elements/customer-table.html |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list