From 34f5ae59340de8f0dbe08bfc292f15a23c381064 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 4 Jul 2022 15:13:35 +0100 Subject: [PATCH] Bug 23681: (QA follow-up) Fix memberentry page display We were missing some changes to the restriction types dropdown handling in the memberentry template. Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/members/memberentrygen.tt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 f10ae9c4b4..2988157361 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -8,6 +8,7 @@ [% PROCESS 'member-main-address-style.inc' %] [% PROCESS 'member-alt-address-style.inc' %] [% PROCESS 'member-alt-contact-style.inc' %] +[% PROCESS 'patron_restrictions.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -1402,8 +1403,12 @@ legend:hover { <label for="debarred_type">Type:</label> <select name="debarred_type"> [% FOREACH code IN restriction_types.keys %] - [% IF restriction_types.$code.can_be_added_manually %] - <option value="[% code | html %]">[% restriction_types.$code.display_text | html %]</option> + [% IF !restriction_types.$code.is_system %] + [% IF restriction_types.$code.is_default %] + <option value="[% code | html %]" selected>[% PROCESS restriction_type_description restriction=restriction_types.$code %]</option> + [% ELSE %] + <option value="[% code | html %]">[% PROCESS restriction_type_description restriction=restriction_types.$code %]</option> + [% END %] [% END %] [% END %] </select> -- 2.39.5