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 <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 49f30ad6ed)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 83c18ad1c6)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2023-12-05 17:09:26 +00:00
parent af02963e9a
commit e38316dd1f

View file

@ -202,7 +202,7 @@ legend:hover {
[% CASE 'login' %] <span>OPAC/Staff interface login</span> |
[% CASE 'flags' %] <span>Patron account flags</span> |
[% CASE 'debarments' %] <span>Patron restrictions</span> |
[% CASE 'housebound' %] <span>Housebound roles</span> |
[% CASE 'housebound' %][% IF Koha.Preference('HouseboundModule')%] <span>Housebound roles</span> |[% END %]
[% CASE 'additional' %] <span>Additional attributes and identifiers</span> |
[% CASE 'messaging' %] <span>Patron messaging preferences</span> |
[% END %]