From c635934750f503b38119a8e693b4c92baa8aa395 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 17 Nov 2023 21:39:02 +0000 Subject: [PATCH] Bug 35356: Show SMS labels only when data exists To test: APPLY PATCH 1. Set SMSSendDriver = Email 2. Admin > SMS cellular providers, have at least 1. 3. Go to the members/moremember.pl 4. If the patron has no SMSnumber or SMS provider then niether of the labels should appear. 5. Add both a SMSnumber and SMS provider, make sure the data appears correctly on members/moremember.pl. --- .../prog/en/modules/members/moremember.tt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 3a1278e3cfe..095c6e35dc7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -354,11 +354,13 @@ [% IF Koha.Preference('SMSSendDriver') %]
    -
  1. - SMS number: - [% patron.smsalertnumber | html %] -
  2. - [% IF Koha.Preference( 'SMSSendDriver') == 'Email' %] + [% IF patron.smsalertnumber %] +
  3. + SMS number: + [% patron.smsalertnumber | html %] +
  4. + [% END %] + [% IF Koha.Preference( 'SMSSendDriver') == 'Email' && patron.sms_provider.name %]
  5. SMS provider: [% patron.sms_provider.name | html %] -- 2.30.2