[Koha-patches] [PATCH] BUG-2393: ENHANCEMENT: SearchMember() uses "cardnumber%" wildcard - if other search-types fail

Mason James mason.loves.sushi at gmail.com
Thu Jul 24 04:55:41 CEST 2008


---
 C4/Members.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Members.pm b/C4/Members.pm
index d1546d9..3b64ad2 100644
--- a/C4/Members.pm
+++ b/C4/Members.pm
@@ -228,7 +228,7 @@ JOIN borrower_attribute_types USING (code)
 WHERE staff_searchable = 1
 AND attribute like ?
 )";
-            push (@bind, $searchstring);
+            push (@bind, "$searchstring%");
         }
         $query .= "order by $orderby";
 
-- 
1.5.5.GIT




More information about the Koha-patches mailing list