summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-cust_main-duplicates.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-10-05 20:03:49 -0700
committerMark Wells <mark@freeside.biz>2013-10-05 20:03:49 -0700
commit913b38d717fc7f2fae32722e9f30462fc9344fb3 (patch)
treeb2dfb6e63fef55d9521d07ed0c086568dbbc66d8 /httemplate/misc/xmlhttp-cust_main-duplicates.html
parent9f26e78e38c70af6d2de28808c119b0e2251fd41 (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');