Koha/koha-tmpl/intranet-tmpl/prog/js
David Cook b4d8180d82 Bug 26285: Follow E.164 pattern for validating SMS numbers
Currently, Koha is not correctly validating SMS numbers using
E.164. This causes Australian phone numbers without a country code
to fail validation.

This patch uses the E.164 pattern of 1-3 digits for country code,
prefixed by a + symbol, and followed by up to 12 digits for
the remainder of the phone number.

To test:

0. Don't apply patch yet
1. Set "SMSSendDriver" to "Anything"
2. Go to http://localhost:8081/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=51
3. Type in 0455555555 and note "Please enter a valid phone number." message in browser

6. Apply the patch

7. Go to http://localhost:8081/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=51
8. Type in 0455555555 and note no validation error
9. Type in +61455555555 and note no validation error
10. Type in 123456789012 and note no validation error
11. Type in 1234567890123 and note "Please enter a valid phone number." error
12. Type in +900123456789012 and note no validation error
13. Type in 900123456789012 and note "Please enter a valid phone number." error

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-09 15:39:52 +02:00
..
pages Bug 26216: Remove the use of jquery.checkboxes plugin from catalog search results 2020-08-18 15:45:49 +02:00
acq.js
acquisitions-menu.js
additem.js
addorderiso2709.js Bug 26213: Remove the use of jquery.checkboxes plugin when adding orders from MARC file 2020-08-18 15:45:48 +02:00
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js
basketgroup.js
biblio_framework.js
cart.js Bug 26010: Remove the use of jquery.checkboxes plugin from staff interface cart 2020-08-13 07:55:42 +02:00
catalog.js Bug 5428: Jump back to the search result after deleting a record 2020-08-13 07:55:45 +02:00
cataloging.js Bug 25728: Don't prefill av's code 2020-08-24 11:19:03 +02:00
cataloging_additem.js Bug 25727: Do not open options on clear 2020-08-24 11:19:03 +02:00
categories.js
charts.js
checkouts.js Bug 25584: Fix minor styling issue 2020-09-02 12:14:21 +02:00
circ-patron-search-results.js
datatables.js Bug 25287: Make the strings from .js translatable 2020-06-24 15:15:41 +02:00
desk_selection.js Bug 24201: (follow-up) add desk choice with library choice 2020-08-07 16:54:40 +02:00
file-upload.js
funds_sorts.js
holds.js
ill-availability-partner.js
ill-availability.js
ill-list-table.js
item_search_fields.js
letter.js
localcovers.js Bug 25031: (QA follow-up) Improve handling of one or fewer images 2020-07-24 14:09:30 +02:00
mana.js
marc_modification_templates.js Bug 26065: Move translatable strings out of marc_modification_templates.tt and into marc_modification_templates.js 2020-08-18 15:45:49 +02:00
marc_subfields_structure.js Bug 25826: Forbid changing the hidden attributes for biblionumber 2020-08-07 09:55:50 +02:00
members-menu.js
members.js Bug 26285: Follow E.164 pattern for validating SMS numbers 2020-09-09 15:39:52 +02:00
merge-record.js
messaging-preference-form.js
offlinecirc.js
onboarding.js
rotating-collections.js
select2.js Bug 25727: (follow-up) Some style updates, JS i18n 2020-08-24 11:19:03 +02:00
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 24625: Store showLastPatron information using localStorage 2020-07-20 17:45:31 +02:00
subscription-add.js
suggestions.js
table_filters.js
tools-menu.js
viewlog.js Bug 25968: Make logs sort by date descending as a default 2020-07-30 17:44:27 +02:00
xmlControlfield.js
z3950_search.js Bug 26215: Remove the use of jquery.checkboxes plugin from Z39.50 search pages 2020-08-18 15:45:49 +02:00