From b9b49ff5aee6b57872c5628c0c40411033aa21e4 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. --- reserve/request.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/reserve/request.pl b/reserve/request.pl index a449d8e..64476fb 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -111,6 +111,7 @@ if ($findborrower) { my $results = C4::Utils::DataTables::Members::search( { searchmember => $findborrower, + searchtype => 'contain', dt_params => $dt_params, } ); -- 2.1.0