From 9d40cdee7f523cc7ead17d5046493323ead122da Mon Sep 17 00:00:00 2001 From: Bo Gustavsson Date: Fri, 15 May 2026 00:00:16 +0200 Subject: [PATCH] Bug 38361: Gender field does not include a Required if the field is set to required in PatronSelfRegistrationBorrowerMandatoryField Solves this bug and enhances the user experiance by replacing the old radio buttons with a less-confusing dropdown menu. Test plan: 1. Open the setting "PatronSelfRegistrationBorrowerMandatoryField", find Gender(sex) and mark it as not required. 2. Go to the self registration form. No 'Required' label under gender. 3. Go back to the setting "PatronSelfRegistrationBorrowerMandatoryField", find Gender(sex) and mark it as required. 4. Go to the self registration form. The 'Required' label is there. Signed-off-by: David Nind Signed-off-by: Emily Lamancusa Signed-off-by: Pedro Amorim --- .../bootstrap/en/modules/opac-memberentry.tt | 35 ++++++------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index f3d4138463..4fd93491ae 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -554,34 +554,19 @@ [% END %] [% UNLESS hidden.defined('sex') %] -
  • -
    Gender:
    - - [% IF borrower.sex == 'F' %] - - [% ELSE %] - - [% END %] +
  • + - - [% IF borrower.sex == 'M' %] - - [% ELSE %] - - [% END %] + - [% ELSE %] - - [% END %] + + + + - - [% IF borrower.sex == '' %] - - [% ELSE %] - + [% IF mandatory.sex %] +
    Required
    [% END %]
  • [% END %]