Bug 10835: fix patron search for using "contains" search type
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 6 Sep 2013 17:10:19 +0000 (13:10 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Sat, 7 Sep 2013 20:50:30 +0000 (20:50 +0000)
commit49e014d5b0f10d22d9cc5a4d3871bce34f298876
tree25bfc4461c63f378485a4ec34917d9a7b35c6b53
parentdd367efddf887e3197492f11996a36c0d6c5e4c4
Bug 10835: fix patron search for using "contains" search type

The patron search type option "contains" works fine for multiple
strings, but returns no results for a single string search. For example,
the patron "Henry Acevedo" will be returned for a "contains" search
"en ev" but not for just "en" or "ev".

Test Plan:
1) Create 2 patrons named "Test One" and "Test Two"
2) Run a "contains" search for the term "est"
3) Note no results were found
4) Apply this patch
5) Repeat step 2
6) Note the patrons now display in the search results.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests and QA script pass.
Also checked that 'starts with' still works as expected -
searching for ev will only return "Eva Dillon" from the
example patrons in this case.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
members/member.pl