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 <hayleymapley@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2019-05-11 10:23:28 -05:00 committed by Nick Clemens
parent 5410186f68
commit 97ec0a2e4b
1 changed files with 1 additions and 1 deletions

View File

@ -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',