From a1e0f64a5c0a032b197219e3bd4e6a0c43efbe25 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. --- .../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 b6b70882e67..e1fbc890161 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.30.2