% errorpage(emt("No matching customers found!"));
% } # errorpage quits, so we don't need an 'else' below
-<& /elements/header.html, emt("Customer Search Results"), '' &>
+<& /elements/header.html, mt("Customer Search Results"), '' &>
% $total ||= scalar(@cust_main);
<% mt("[_1] matching customers found",$total) |h %>
if ( $cgi->param('search_cust') ) {
$sortby = \*company_sort;
$orderby = "ORDER BY LOWER(company || ' ' || last || ' ' || first )";
- push @cust_main, smart_search( 'search' => $cgi->param('search_cust'),
+ push @cust_main, smart_search( 'search' => scalar($cgi->param('search_cust')),
'no_fuzzy_on_exact' => 1, #pref?
);
}