Bug 34531: Fix template logic to not hide patron restrictions

To test:
1. From BorrowerUnwantedFields Hide Gone no address flag (gonenoaddress) and Lost card flag (lost).
2. Got to memberentrygen.tt and see that Patron restrictions is now hidden
3. Apply patch, now the Patron restrictions field should not be hidden.

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 7e23abcccb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 40a45f6d75)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Lucas Gass 2023-10-16 19:37:41 +00:00 committed by Matt Blenkinsop
parent d32d035c0e
commit 831684ea2d
1 changed files with 1 additions and 2 deletions

View File

@ -1392,7 +1392,7 @@ legend:hover {
[% END # /UNLESS nogonenoaddress %]
</ol>
</fieldset> <!-- /#memberentry_account_flags -->
[% END %]
<fieldset class="rows" id="memberentry_restrictions">
<legend id="restrictions_lgd">Patron restrictions</legend>
[% IF ( patron.restrictions.count ) %]
@ -1478,7 +1478,6 @@ legend:hover {
</fieldset> <!-- /#manual_restriction_form -->
[% END # /IF CAN_user_borrowers_edit_borrowers %]
</fieldset> <!-- /#memberentry_restrictions -->
[% END # /UNLESS ( opadd || opduplicate ) %]
[% END # /IF ( step_3 ) %]
[% IF ( step_7 ) %]