summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-cust_main-search.cgi
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-08-21 14:15:40 -0700
committerIvan Kohler <ivan@freeside.biz>2012-08-21 14:15:40 -0700
commitfa2326a36a5ce74e8c9dab504c3274688a297c04 (patch)
treebf49bf640e81383ff64fb9df9b12be477d2d6f5a /httemplate/misc/xmlhttp-cust_main-search.cgi
parent3c755c5662be8bfe62a646b5e5ea2e2aae3143d8 (diff)
add preference to enable fuzzy searching even on exact matches, RT#18962
Diffstat (limited to 'httemplate/misc/xmlhttp-cust_main-search.cgi')
-rw-r--r--httemplate/misc/xmlhttp-cust_main-search.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/misc/xmlhttp-cust_main-search.cgi b/httemplate/misc/xmlhttp-cust_main-search.cgi
index 16f7cd2bc..acf7e70e2 100644
--- a/httemplate/misc/xmlhttp-cust_main-search.cgi
+++ b/httemplate/misc/xmlhttp-cust_main-search.cgi
@@ -10,7 +10,7 @@
%
% my $string = $cgi->param('arg');
% my @cust_main = smart_search( 'search' => $string,
-% 'no_fuzzy_on_exact' => 1, #pref?
+% 'no_fuzzy_on_exact' => ! $FS::CurrentUser::CurrentUser->option('enable_fuzzy_on_exact'),
% );
% my $return = [ map [ $_->custnum,
% $_->name,