From 488a256dc0b1b6b085308abb83f618cb52266fdf Mon Sep 17 00:00:00 2001 From: David Nind Date: Tue, 4 Jun 2024 01:57:37 +0000 Subject: [PATCH] Bug 25520: Fix the SMS number input hint on the OPAC messaging page This makes the hint when entering an SMS number on the OPAC messaging settings page the same as the staff interface hint: "Please enter numbers only. Prefix the number with + or 00 if including the country code." For some countries using either +XX or 00XX are accepted, for example: +49 or 0049. Test plan: 1. Set the SMSSendDriver system preference to Email 2. View the current hint for entering an SMS number in the staff interface: 2.1 Go to Patrons > + New patron > Patron. 2.2 Scroll down to the 'Patron messaging preferences' section at the end of the page. 2.3 Note that the hint is "Please enter numbers only. Prefix the number with + or 00 if including the country code.". 3. View the current hint for entering an SMS number in the OPAC: 3.1 Go to the OPAC > Your account (log in if required). 3.2 Select the 'Messaging' tab/section. 3.3 Note that the hint is "Please enter numbers only. Prefix the number with + if including the country code.". 3.4 The difference: "..or 00.." is missing. 4. Apply the patch. 5. Refresh the OPAC messaging page. 6. The hint text for the OPAC is now the same as the staff interface. Signed-off-by: David Nind Signed-off-by: Sam Lau Signed-off-by: Matt Blenkinsop Signed-off-by: Martin Renvoize (cherry picked from commit 313cf37a53b8ff97387a4bd630635d4784bb7a36) Signed-off-by: Lucas Gass (cherry picked from commit a0d5b813d5d623773a657f10367ee6ec94a5cb94) Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt index 3b5d5e95a7..3004c4932b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt @@ -191,7 +191,7 @@
  • - Please enter numbers only. Prefix the number with + if including the country code. + Please enter numbers only. Prefix the number with + or 00 if including the country code.
  • [% IF ( SMSSendDriver == 'Email' ) %] -- 2.39.5