From 4c75d1613b21683481a1827e717e6146feaeffb6 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 2 Jun 2022 10:23:08 -0400 Subject: [PATCH] Bug 30891: SMS provider shows on staff side even if SMS::Send driver is not set to "Email" It appears that in my original submission ( Bug 9021 ), I hid the SMS provider selector unless the SMS::Send driver was set to "Email", but only on the OPAC, not on the staff interface! Test Plan: 1) Set SMSSendDriver to anything except "Email" 2) Note the SMS Provider pulldown shows in the patron editor 3) Apply this patch 4) Reload the page, SMS Provider id should now be gone 5) Set SMSSendDriver to "Email" 6) Reload the page, SMS Provider should now be shown Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit febacd36e121185546c87a413e6644dcfe0e9be6) Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 03eb61781e..c065dd3454 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1511,7 +1511,7 @@ legend:hover { Please enter numbers only. Prefix the number with + or 00 if including the country code.

- [% UNLESS nosms_provider_id %] + [% IF SMSSendDriver == 'Email' && !nosms_provider_id %]