From 83c18ad1c6a3079cae8eff34f1f4712fca8c4f04 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 5 Dec 2023 17:09:26 +0000 Subject: [PATCH] Bug 35493: Do not show housebound roles as collapsible unless the housebound module is on To test: 1. HouseboundModule - disabled 2. CollapseFieldsPatronAddForm, add 'Housebound roles' 3. Edit/create a patron. 4. Notice the useless Housebound roles link at the top of the page 5. APPLY PATCH 6. Try 1 - 3 again, this time no Housebound roles at the top ( Show collapsed fields ) 7. Turn on HouseboundModule and make sure it now shows Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer (cherry picked from commit 49f30ad6ed5f36a6c2e570ab52b8ea2ae7ca8f19) Signed-off-by: Fridolin Somers --- .../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 e1fbc89016..816b7f088f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -213,7 +213,7 @@ legend:hover { [% CASE 'login' %] OPAC/Staff interface login | [% CASE 'flags' %] Patron account flags | [% CASE 'debarments' %] Patron restrictions | - [% CASE 'housebound' %] Housebound roles | + [% CASE 'housebound' %][% IF Koha.Preference('HouseboundModule')%] Housebound roles |[% END %] [% CASE 'additional' %] Additional attributes and identifiers | [% CASE 'messaging' %] Patron messaging preferences | [% END %] -- 2.39.5