From ea18e58435f33a195b3b847573e2e2c765af44bb Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 1 Oct 2014 10:46:14 +0200 Subject: [PATCH] Bug 14562: All patrons returned if 1 has a cardnumber set to an empty string (Fix conflict with bug 12833) This patch is a backport of (Bug 12648 is in 3.20.x, not 3.18.x): commit 481479fe627dcbabb3ef66df0724cc3fe75b110c Bug 12648: Fix conflict with bug 12833 Test plan: Set the cardnumber of one of the patron to an empty string Do a patron search and use filters The search will redirect to the patron detail page of the patron with the empty string --- svc/members/search | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/svc/members/search b/svc/members/search index 9024a67..48c0dd4 100755 --- a/svc/members/search +++ b/svc/members/search @@ -60,7 +60,8 @@ foreach (grep {$_ =~ /^mDataProp/} keys %dt_params) { my $results; # If the user filled a term, maybe it's a cardnumber. # This cannot be the case if a first letter is given. -if ( not $firstletter +if ( $searchmember + and not $firstletter and $searchfieldstype and $searchfieldstype eq 'standard' ) { -- 2.1.0