From 64747f5c424cc598b7de2d4a4bb81e4d4122e8f3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sat, 11 May 2019 10:23:28 -0500 Subject: [PATCH] Bug 20514: Use streetnumber when searching for patrons by address The streetnumber field was ignored from the search. Test plan: Create a patron with streetnumber="12", address="rue des cerisiers" Search for patrons using the search field "street address" using: 12 rue des cerisiers => Without this patch the patron will not be returned => With this patch applied it will! Signed-off-by: Hayley Mapley Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit 97ec0a2e4bf76cf2e67a7ddbd463d9942a4fe383) Signed-off-by: Martin Renvoize --- C4/Utils/DataTables/Members.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Utils/DataTables/Members.pm b/C4/Utils/DataTables/Members.pm index 1e3f6420a2..18de38cf6b 100644 --- a/C4/Utils/DataTables/Members.pm +++ b/C4/Utils/DataTables/Members.pm @@ -90,7 +90,7 @@ sub search { borrowernumber => 'borrowernumber', userid => 'userid', phone => 'phone,phonepro,B_phone,altcontactphone,mobile', - address => 'streettype,address,address2,city,state,zipcode,country', + address => 'streetnumber,streettype,address,address2,city,state,zipcode,country', dateofbirth => 'dateofbirth', sort1 => 'sort1', sort2 => 'sort2', -- 2.39.5