From 671209dffef20e5b5dc210611fd2158e030cbdc5 Mon Sep 17 00:00:00 2001 From: Blou 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 --- 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