Bugzilla – Attachment 49887 Details for
Bug 16197
Searching for user in reserve/request.pl is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16197 - Specifying both last and firstname in reserve's patrong search yields nothing.
Bug-16197---Specifying-both-last-and-firstname-in-.patch (text/plain), 1.32 KB, created by
Nick Clemens (kidclamp)
on 2016-04-04 23:47:25 UTC
(
hide
)
Description:
Bug 16197 - Specifying both last and firstname in reserve's patrong search yields nothing.
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2016-04-04 23:47:25 UTC
Size:
1.32 KB
patch
obsolete
>From 671209dffef20e5b5dc210611fd2158e030cbdc5 Mon Sep 17 00:00:00 2001 >From: Blou <philippe.blouin@inlibro.com> >Date: Mon, 4 Apr 2016 16:51:05 -0400 >Subject: [PATCH] Bug 16197 - Specifying both last and firstname in reserve's > patrong search yields nothing. > >The user search in reserve/request.pl got broken by bug 13894. >The search using the "recordset" doesn not care for "lastname, firstname" as before, instead finding nothing. > >Test scenario: > >EASY SETUP: database with two borrowers with same last name, and one record minimu. >1) go to KOHA_SITE/cgi-bin/koha/reserve/request.pl?biblionumber=1 >2) enter the last name. You should get two results in the table >3) same site, enter "lastname, firstname" (comma optional). You get no result. >4) Apply the patch, same test now return the one matching result. > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > reserve/request.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/reserve/request.pl b/reserve/request.pl >index 970596f..ab83393 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -113,6 +113,7 @@ if ($findborrower) { > my $results = C4::Utils::DataTables::Members::search( > { > searchmember => $findborrower, >+ searchtype => 'contain', > dt_params => $dt_params, > } > ); >-- >1.7.10.4
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 16197
:
49877
| 49887