Bugzilla – Attachment 41436 Details for
Bug 14562
[3.18.x] Patron with empty card number will be only result returned by patron datatables search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14562: All patrons returned if 1 has a cardnumber set to an empty string (Fix conflict with bug 12833)
Bug-14562-All-patrons-returned-if-1-has-a-cardnumb.patch (text/plain), 1.17 KB, created by
Jonathan Druart
on 2015-08-10 08:59:59 UTC
(
hide
)
Description:
Bug 14562: All patrons returned if 1 has a cardnumber set to an empty string (Fix conflict with bug 12833)
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-08-10 08:59:59 UTC
Size:
1.17 KB
patch
obsolete
>From ea18e58435f33a195b3b847573e2e2c765af44bb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >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
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 14562
:
41436
|
43292
|
43568