From 4bb0f0db8daad4b2c247c15a6d182ebd4702991b 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 (cherry picked from commit 2aaadaad09e96d982bef65f66c553b8630fd73e3) Signed-off-by: Lucas Gass --- .../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 9dc706fe46..f51dcc9da6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1591,11 +1591,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