summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-cust_main-duplicates.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-10-05 20:01:42 -0700
committerMark Wells <mark@freeside.biz>2013-10-05 20:01:42 -0700
commit76f26627c28cb5e95e61d67f21b53020f2b362b6 (patch)
tree31174accf89ea197e37e80e427cb0d47172aa727 /httemplate/misc/xmlhttp-cust_main-duplicates.html
parentc67b0f0200f3398fa0791722e79003054f0f7e8a (diff)
restore duplicate customer checking with 3.x locations, #16582
Diffstat (limited to 'httemplate/misc/xmlhttp-cust_main-duplicates.html')
-rw-r--r--httemplate/misc/xmlhttp-cust_main-duplicates.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/misc/xmlhttp-cust_main-duplicates.html b/httemplate/misc/xmlhttp-cust_main-duplicates.html
index 7ee00af66..7cd463371 100644
--- a/httemplate/misc/xmlhttp-cust_main-duplicates.html
+++ b/httemplate/misc/xmlhttp-cust_main-duplicates.html
@@ -50,7 +50,9 @@ my $conf = new FS::Conf;
my $sub = $cgi->param('sub');
my $hashref = decode_json($cgi->param('arg'));
-my @cust_main = qsearch('cust_main', $hashref);
+my $search = FS::cust_main->search($hashref);
+#warn Dumper($search);
+my @cust_main = qsearch( $search );
my $set_to_customer = <<EOF;
var custnum_array = document.getElementsByName('dup_custnum');