X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fsearch%2Fcust_main.cgi;h=7c3ad3384d1d6b6c85098a1b7bb91daf84603b7a;hb=fa2326a36a5ce74e8c9dab504c3274688a297c04;hp=a81958e200dc786efe977c4492abddb58ca8f67d;hpb=3c755c5662be8bfe62a646b5e5ea2e2aae3143d8;p=freeside.git diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index a81958e20..7c3ad3384 100755 --- a/httemplate/search/cust_main.cgi +++ b/httemplate/search/cust_main.cgi @@ -468,9 +468,10 @@ if ( $cgi->param('browse') if ( $cgi->param('search_cust') ) { $sortby = \*company_sort; $orderby = "ORDER BY LOWER(company || ' ' || last || ' ' || first )"; - push @cust_main, smart_search( 'search' => scalar($cgi->param('search_cust')), - 'no_fuzzy_on_exact' => 1, #pref? - ); + push @cust_main, smart_search( + 'search' => scalar($cgi->param('search_cust')), + 'no_fuzzy_on_exact' => ! $curuser->option('enable_fuzzy_on_exact'), + ); } @cust_main = grep { $_->ncancelled_pkgs || ! $_->all_pkgs } @cust_main