[Koha-bugs] [Bug 23817] Normalize phone number when searching patrons

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 14 07:18:57 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23817

--- Comment #13 from David Cook <dcook at prosentient.com.au> ---
Created attachment 140610
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=140610&action=edit
Bug 23817: Normalize phone number when storing and when searching in Patrons
module

This patch normalizes the phone number when stored via Koha::Patron,
and normalizes the phone number when searching "Primary phone" in the Patrons
module.

Test plan:
0. Apply patch and koha-plack --restart kohadev
1. Go to
http://localhost:8081/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=51
2. Input '1-(234)-567-8901' into the 'Primary phone' field
3. Note on the next screen the phone number is shown as 12345678901
4. Go to http://localhost:8081/cgi-bin/koha/members/members-home.pl
5. Choose "Search field" of "Primary phone"
6. Search for '1-(234)-567-8901'
7. Note you are taken to
http://localhost:8081/cgi-bin/koha/members/moremember.pl?borrowernumber=51
8. Try out different permutations like '234 567 8901' or '5678901'
9. Note that every permutation works to find the borrower

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list