From 6ef7cbededc424e93622b30832ebc7f609d7308d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 2 Dec 2020 10:52:27 +0100 Subject: [PATCH] Bug 26953: Hide phone and itiva from "Overdue notice/status triggers" If the prefs are off we should not display the checkboxes Test plan: 1. Turn off PhoneNotification and TalkingTechItivaPhoneNotification 2. Go to the "Overdue notice/status triggers" and confirm that phone and itiva columns are not displayed 3. Turn the prefs on and confirm the checkboxes are now displayed Signed-off-by: Lucas Gass Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/tools/overduerules.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt index 22d4050fe0..8fea31861b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt @@ -73,6 +73,8 @@ Letter Restrict [% FOREACH mtt IN message_transport_types %] + [% NEXT IF mtt == 'itiva' AND !Koha.Preference('TalkingTechItivaPhoneNotification') %] + [% NEXT IF mtt == 'phone' AND !Koha.Preference('PhoneNotification') %] [% SWITCH mtt %] [% CASE 'email' %] @@ -121,16 +123,14 @@ [% END %] [% FOREACH mtt IN value.message_transport_types %] + [% NEXT IF mtt.value == 'itiva' AND !Koha.Preference('TalkingTechItivaPhoneNotification') %] + [% NEXT IF mtt.value == 'phone' AND !Koha.Preference('PhoneNotification') %] [% IF mtt.selected %] [% ELSE %] [% IF mtt.value == "sms" and not Koha.Preference("SMSSendDriver") %] - [% ELSIF mtt.value == "itiva" and not Koha.Preference("TalkingTechItivaPhoneNotification") %] - - [% ELSIF mtt.value == "phone" and not Koha.Preference("PhoneNotification") %] - [% ELSE %] [% END %] -- 2.39.5