From ebf17477c072559edea84a484b94374d1f44bf0c Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Fri, 10 May 2024 08:31:42 +0300 Subject: [PATCH] Bug 36825: Hide "Protected" field via BorrowerUnwantedField syspref Setting field "Protected" as hidden in patron entry/modification form via BorrowerUnwantedField syspref doesn't work. Form is missing condition "UNLESS noprotected". To test: 1. From BorrowerUnwantedField, check field "Protected" as hidden. 2. Either attempt to create a new patron or modify existing one. => Note that "Protected" is still displayed in the form. 3. Apply this patch. 4. Navigate back to create/modify patron form. => Note that "Protected" is no longer displayed. 5. Uncheck field "Protected" from BorrowerUnwantedField. => Field should now be displayed in create/modify form. Sponsored-by: Koha-Suomi Oy Signed-off-by: Andrew Fuerste Henry Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer (cherry picked from commit a0b1ee7df30a191a65fc44020bbe18dd69366ce2) Signed-off-by: Fridolin Somers --- .../prog/en/modules/members/memberentrygen.tt | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 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 3e1acd6c56..fe086041b5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1043,28 +1043,30 @@ legend:hover { [% END %] -
  • - - [% IF ( patron.protected == 1 ) %] - - - [% ELSE %] - - - [% END %] -
  • + [% UNLESS noprotected %] +
  • + + [% IF ( patron.protected == 1 ) %] + + + [% ELSE %] + + + [% END %] +
  • + [% END %] [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
  • -- 2.39.5