fix quick payment entry when search returns exactly one row, #17972
authorMark Wells <mark@freeside.biz>
Fri, 8 Jun 2012 02:23:14 +0000 (19:23 -0700)
committerMark Wells <mark@freeside.biz>
Fri, 8 Jun 2012 02:23:14 +0000 (19:23 -0700)
httemplate/elements/customer-table.html

index a517ece..bcbdde0 100644 (file)
@@ -245,7 +245,7 @@ Example:
 
       if ( customerArrayArray.length == 1 ) {
 
-        update_customer(customerArrayArray[1]);
+        update_customer(searchrow, customerArrayArray[0]);
 % if ( $opt{custnum_update_callback} ) {
         <% $opt{custnum_update_callback} %>(searchrow, '<% $opt{prefix} %>')
 % }