From: Ivan Kohler Date: Fri, 6 Sep 2013 04:05:18 +0000 (-0700) Subject: add no_fuzzy_on_exact global, RT#24804 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=0363eb9628449eaf4edb323b85c1a0c06ffee985;p=freeside.git add no_fuzzy_on_exact global, RT#24804 --- diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index 05ea9d184..fcd259615 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -91,6 +91,12 @@ Interface +% if ( FS::Conf->new->exists('enable_fuzzy_on_exact') ) { + + + +% } else { + Enable approximate customer searching even when an exact match is found: @@ -98,6 +104,8 @@ Interface +% } + Disable HTML editor for customer notes: diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index 224166b70..d2c1221a4 100755 --- a/httemplate/search/cust_main.cgi +++ b/httemplate/search/cust_main.cgi @@ -494,7 +494,9 @@ if ( $cgi->param('browse') $orderby = "ORDER BY LOWER(company || ' ' || last || ' ' || first )"; push @cust_main, smart_search( 'search' => scalar($cgi->param('search_cust')), - 'no_fuzzy_on_exact' => ! $curuser->option('enable_fuzzy_on_exact'), + 'no_fuzzy_on_exact' => ! ( $curuser->option('enable_fuzzy_on_exact') + || $conf->exists('enable_fuzzy_on_exact') + ), ); }