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:41 -0700
committerIvan Kohler <ivan@freeside.biz>2012-08-21 14:15:41 -0700
commit864d4c0a473856c9d9dcb81d60297476c6a25a03 (patch)
tree300eec8571985d72c6f896cd172a518f66d2f4a1 /httemplate/misc/xmlhttp-cust_main-search.cgi
parentf834e93e48f53d31291b512c4546d4b768f8b21d (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 1793057c4..f3f50062c 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,