'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.',
% } 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,
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
</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>
$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')
- ),
);
}