RT#38983: OBL - searching in Fibernetics Freeside [removed enable_fuzzy_on_exact]
authorJonathan Prykop <jonathan@freeside.biz>
Tue, 12 Jan 2016 21:27:29 +0000 (15:27 -0600)
committerJonathan Prykop <jonathan@freeside.biz>
Tue, 12 Jan 2016 21:27:29 +0000 (15:27 -0600)
FS/FS/Conf.pm
httemplate/misc/xmlhttp-cust_main-search.cgi
httemplate/pref/pref-process.html
httemplate/pref/pref.html
httemplate/search/cust_main.cgi

index 7dbc2eb..4b72be1 100644 (file)
@@ -3970,13 +3970,6 @@ and customer address. Include units.',
     'type'        => 'text',
   },
 
-  {
-    'key'         => 'enable_fuzzy_on_exact',
-    'section'     => 'UI',
-    'description' => 'Enable approximate customer searching even when an exact match is found.',
-    'type'        => 'checkbox',
-  },
-
   { 'key'         => 'pkg_referral',
     'section'     => '',
     'description' => 'Enable package-specific advertising sources.',
index f40df56..40697f1 100644 (file)
@@ -9,9 +9,7 @@
 % } elsif ( $sub eq 'smart_search' ) {
 %
 %   my $string = $cgi->param('arg');
-%   my @cust_main = smart_search( 'search' => $string,
-%                                 'no_fuzzy_on_exact' => ! $FS::CurrentUser::CurrentUser->option('enable_fuzzy_on_exact'),
-%                               );
+%   my @cust_main = smart_search( 'search' => $string );
 %   my $return = [ map [ $_->custnum,
 %                        $_->name,
 %                        $_->balance,
index 665bb81..f03a8df 100644 (file)
@@ -52,7 +52,6 @@ unless ( $error ) { # if ($access_user) {
   my @paramlist = qw( locale menu_position default_customer_view 
                       history_order
                       spreadsheet_format mobile_menu
-                      enable_fuzzy_on_exact
                       disable_html_editor disable_enter_submit_onetimecharge
                       enable_mask_clipboard_hack dashboard_customers
                       customer_view_emails
index 4629106..50d6e8d 100644 (file)
@@ -108,21 +108,6 @@ Interface
     </TD>
   </TR>
 
-% if ( FS::Conf->new->exists('enable_fuzzy_on_exact') ) {
-
-  <INPUT TYPE="hidden" NAME="enable_fuzzy_on_exact" VALUE="<% $curuser->option('enable_fuzzy_on_exact') ? 1 : 0 %>">
-
-% } else {
-
- <TR>
-    <TH ALIGN="right" COLSPAN=1>Enable approximate customer searching <BR>even when an exact match is found: </TH>
-    <TD ALIGN="left" COLSPAN=2>
-      <INPUT TYPE="checkbox" NAME="enable_fuzzy_on_exact" VALUE="1" <% $curuser->option('enable_fuzzy_on_exact') ? 'CHECKED' : '' %>>
-    </TD>
-  </TR>
-
-% }
-
   <TR>
     <TH ALIGN="right" COLSPAN=1>Disable HTML editor for customer notes: </TH>
     <TD ALIGN="left" COLSPAN=2>
index 5a574bc..4811407 100755 (executable)
@@ -476,9 +476,6 @@ 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')
-                                 || $conf->exists('enable_fuzzy_on_exact')
-                               ),
     );
   }