From 33c341fb3ed474fc628f832c571d6e53edc91669 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Fri, 30 Oct 2020 15:55:35 -0400 Subject: [PATCH] lp1902302 Opac. SMS and Carriers appear in Edit Holds Regardless of OU Setting. The SMS Number field and Default Carrier field display when editing an individual hold in the opac, regardless of the 'Enable features that send SMS text messages' setting. This patch rectifies that behavior. To test. Set the 'Enable features that send SMS text messages' to False. Place a hold for a patron. Login to the opac as that patron and view the holds. Edit the hold, and notice that the SMS and Carrier fields are displayed. Apply the patch. Refresh the edit form. The fields no longer display. Set the 'Enable features that send SMS text messages' to True. Refresh the edit form. The fields now display. Signed-off-by: Garry Collum Signed-off-by: Kyle Huckins Signed-off-by: Galen Charlton --- Open-ILS/src/templates/opac/myopac/holds/edit.tt2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 b/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 index ab8737339e..1d1d7cdf22 100644 --- a/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 +++ b/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 @@ -111,6 +111,7 @@ + [% IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1%] [% l('SMS Notification') %] [% l('Default Mobile Carrier') %] [% INCLUDE "opac/parts/sms_carrier_selector.tt2" ahr, sms_carrier_hide_warning="true", sms_carrier_hide_label="true" %] + [% END %] [% END %] -- 2.11.0