X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=inline;f=httemplate%2Felements%2Fcustomer-table.html;h=75e682d928fa359861503fbdcd588ab0c28d7f53;hb=c6782ab85ea83e0c78d85b8975985aac9d467f9d;hp=79443dc8b95ab147730587ad5691800902ea0a2e;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/httemplate/elements/customer-table.html b/httemplate/elements/customer-table.html index 79443dc8b..75e682d92 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} ) {