Bug 20514: Use streetnumber when searching for patrons by address
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 11 May 2019 15:23:28 +0000 (10:23 -0500)
committerLiz Rea <liz@bywatersolutions.com>
Tue, 18 Jun 2019 16:49:51 +0000 (16:49 +0000)
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>
(cherry picked from commit 97ec0a2e4bf76cf2e67a7ddbd463d9942a4fe383)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Liz Rea <liz@bywatersolutions.com>

C4/Utils/DataTables/Members.pm

index 1e3f642..18de38c 100644 (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',