Bugzilla – Attachment 20833 Details for
Bug 10835
Patron search for using "contains" search type fails with only one search term
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10835 - Patron search for using "contains" search type fails with only one search term
Bug-10835---Patron-search-for-using-contains-searc.patch (text/plain), 1.45 KB, created by
Kyle M Hall
on 2013-09-06 17:13:59 UTC
(
hide
)
Description:
Bug 10835 - Patron search for using "contains" search type fails with only one search term
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2013-09-06 17:13:59 UTC
Size:
1.45 KB
patch
obsolete
>From bfb9a6b283457f6d322569ba675d89a87cb35933 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 6 Sep 2013 13:10:19 -0400 >Subject: [PATCH] Bug 10835 - Patron search for using "contains" search type fails with only one search term > >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. >--- > members/member.pl | 7 ++++++- > 1 files changed, 6 insertions(+), 1 deletions(-) > >diff --git a/members/member.pl b/members/member.pl >index 47f7cb7..f3d5847 100755 >--- a/members/member.pl >+++ b/members/member.pl >@@ -111,7 +111,12 @@ if ($member || keys %$patron) { > $member = output_pref(dt_from_string($member), 'iso', undef, 1); > } > >- my $search_scope = ( $quicksearch ? "field_start_with" : "start_with" ); >+ my $searchtype = $input->param('searchtype'); >+ my $search_scope = >+ $quicksearch ? "field_start_with" >+ : $searchtype ? $searchtype >+ : "start_with"; >+ > ($results) = Search( $member || $patron, \@orderby, undef, undef, \@searchfields, $search_scope ); > } > >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10835
:
20832
|
20833
|
20840
|
20854