[freeside-commits] freeside/FS/FS cust_main.pm,1.248,1.249
Ivan,,,
ivan at wavetail.420.am
Mon Oct 23 02:24:38 PDT 2006
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv29800
Modified Files:
cust_main.pm
Log Message:
always do substring & fuzzy, getting complains searches are not returning enough
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.248
retrieving revision 1.249
diff -u -d -r1.248 -r1.249
--- cust_main.pm 23 Oct 2006 04:21:02 -0000 1.248
+++ cust_main.pm 23 Oct 2006 09:24:36 -0000 1.249
@@ -4015,10 +4015,10 @@
Accepts the following options: I<search>, the string to search for. The string
will be searched for as a customer number, phone number, name or company name,
-first searching for an exact match then fuzzy and substring matches (in some
-cases - see the source code for the exact heuristics used).
+as an exact, or, in some cases, a substring or fuzzy match (see the source code
+for the exact heuristics used).
-Any additional options treated as an additional qualifier on the search
+Any additional options are treated as an additional qualifier on the search
(i.e. I<agentnum>).
Returns a (possibly empty) array of FS::cust_main objects.
@@ -4168,7 +4168,9 @@
'extra_sql' => "$sql AND $agentnums_sql", #agent virtualization
} );
- unless ( @cust_main ) { #no exact match, trying substring/fuzzy
+ #always do substring & fuzzy,
+ #getting complains searches are not returning enough
+ #unless ( @cust_main ) { #no exact match, trying substring/fuzzy
#still some false laziness w/ search/cust_main.cgi
@@ -4229,7 +4231,7 @@
FS::cust_main->fuzzy_search( { $field => $value }, @fuzopts );
}
- }
+ #}
#eliminate duplicates
my %saw = ();
More information about the freeside-commits
mailing list