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>
This commit is contained in:
Lucas Gass 2023-10-16 19:37:41 +00:00 committed by Tomas Cohen Arazi
parent dc9f6f09d8
commit 7e23abcccb
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -1394,7 +1394,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 ) %]
@ -1480,7 +1480,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 ) %]