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

index fc1af69..a1e9732 100644 (file)
@@ -250,7 +250,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} %>')
 % }