improve performance of DID provisioning status report, RT10988
[freeside.git] / httemplate / search / cust_main.cgi
index b4db1da..b8af1fd 100755 (executable)
@@ -8,7 +8,7 @@
 %  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 %>
@@ -444,7 +444,7 @@ 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' => $cgi->param('search_cust'),
+    push @cust_main, smart_search( 'search' => scalar($cgi->param('search_cust')),
                                    'no_fuzzy_on_exact' => 1, #pref?
                                  );
   }