From 2aaadaad09e96d982bef65f66c553b8630fd73e3 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 16 Nov 2023 14:58:56 +0000 Subject: [PATCH] Bug 35352: Allow SMSalertnumber to be hidden via BorrowerUnwantedField To test: 1. Add a value to SMSSendDriver like 'Emial'. 2. Go to BorrowerUnwantedField and attempt to hide "Mobile phone number (smsalertnumber)" 3. Go to members/memberentry.pl and see the field is not hidden. 4. APPLY PATCH 5. Try step 3 again and this time the field should be properly hidden. Note: This patch also includes some indentation changes. Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Katrin Fischer (cherry picked from commit 6aa971be01987e041dcb55a71ad2f36e3f2c40d1) Signed-off-by: Fridolin Somers --- .../prog/en/modules/members/memberentrygen.tt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index b6b70882e6..e1fbc89016 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1625,11 +1625,13 @@ legend:hover { [% INCLUDE 'messaging-preference-form.inc' %] [% IF ( SMSSendDriver ) %] -

- - - Please enter numbers only. Prefix the number with + or 00 if including the country code. -

+ [% IF !nosmsalertnumber %] +

+ + + Please enter numbers only. Prefix the number with + or 00 if including the country code. +

+ [% END %] [% IF SMSSendDriver == 'Email' && !nosms_provider_id %]

-- 2.39.5