From a1eb54c2661dad29992603e78682d9be2d372625 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 7 Jun 2012 19:28:24 -0700 Subject: [PATCH] fix quick payment entry when search returns exactly one row, #17972 --- httemplate/elements/customer-table.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html index fc1af69c6..a1e9732fd 100644 --- a/httemplate/elements/customer-table.html +++ b/httemplate/elements/customer-table.html @@ -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} %>') % } -- 2.11.0