From 61f3849c0ae129fe62e5c7f7ee3bb5edd7b0a615 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 7 Jul 2023 16:07:47 +0000 Subject: [PATCH] Bug 33620: Don't show guarantor info on details page if borrowerRelationship is empty Content-Type: text/plain; charset=utf-8 To test: 1. Apply patch 2. Have some values in borrowerRelationship. 3. Go to a patron details page and see both 'Show checkouts to guarantor:' and 'Show charges to guarantor:' 4. Now empty borrowerRelationship. 5. Visit the patron detail page again and you should no longer see either of those fields. Signed-off-by: Marcel de Rooy --- .../prog/en/modules/members/moremember.tt | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 639d2a6547..1227ed2502 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -184,24 +184,25 @@ [% END %] [% END %] -
  • - Show checkouts to guarantor: - [% IF patron.privacy_guarantor_checkouts %] - Yes - [% ELSE %] - No - [% END %] -
  • - -
  • - Show charges to guarantor: - [% IF patron.privacy_guarantor_fines %] - Yes - [% ELSE %] - No - [% END %] -
  • + [% IF Koha.Preference("borrowerRelationship") %] +
  • + Show checkouts to guarantor: + [% IF patron.privacy_guarantor_checkouts %] + Yes + [% ELSE %] + No + [% END %] +
  • +
  • + Show charges to guarantor: + [% IF patron.privacy_guarantor_fines %] + Yes + [% ELSE %] + No + [% END %] +
  • + [% END %] [% IF guarantees %]
  • Guarantees: -- 2.30.2