It is sometimes necessary to disable automatic
wildcard searching especially when you have customer
names like:
mycustomer1
mycustomer11
mycustomer111

Currently, if you enter mycustomer1, you end up with
mycustomer11 and mycustomer111 in the list

Therefore, I would like to submit the following patch
which disables wildcard search when the user specifies
"mycustomer1" (i.e. quoted)

--- Form.pm.old 2008-02-22 15:20:19.000000000 -0500
+++ Form.pm     2008-02-22 15:33:40.000000000 -0500
@@ -2453,7 +2453,14 @@
 
     my ( $self, $str ) = @_;
 
-    "%$str%";
+    if ($str !~ /(%|_)/) {
+        if ($str =~ /(^").*("$)/) {
+             $str =~ s/(^"|"$)//g;
+            $str = "$str";
+        } else {
+            $str = "%$str%";
+        }
+    }
 }
 
 sub redo_rows {
 



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ledger-smb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users

Reply via email to