From fa2326a36a5ce74e8c9dab504c3274688a297c04 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 21 Aug 2012 14:15:40 -0700 Subject: add preference to enable fuzzy searching even on exact matches, RT#18962 --- httemplate/misc/xmlhttp-cust_main-search.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/misc/xmlhttp-cust_main-search.cgi') 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, -- cgit v1.2.1