From 9a0535a57b387797689a8e3b792fcbc9c64ceadc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 21 Jun 2018 17:34:17 -0300 Subject: [PATCH] Bug 20981: Fix organization name when displaying patron's info Caused by bug 18403. From patron-title.inc, we need a IF instead of UNLESS. Test plan: Create organizations Search for patrons => Without this patch the "Name" column is empty for organizations => With this patch applied you will see the surname (and othernames if exists) Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc index 8d0aa74..1aa4a64 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc @@ -53,10 +53,10 @@ [%- ELSE %] [%- END -%] [%- END -%] -[%- IF data.category_type == 'I' -%] - [%- UNLESS display_patron_name %][%- data.surname | html %] [% IF data.othernames %] [% END %]([% data.othernames | html %]) [% END -%] -[%- ELSIF display_patron_name -%] - [%- IF invert_name -%] +[%- IF display_patron_name -%] + [%- IF data.category_type == 'I' -%] + [%- data.surname | html %] [% IF data.othernames %] ([% data.othernames | html %])[% END -%] + [%- ELSIF invert_name -%] [% data.title%][%- data.surname | html %], [% data.firstname | html %] [% IF data.othernames %] ([% data.othernames | html %]) [% END -%] [%- ELSE -%] [% data.title %][%- data.firstname | html %] [% IF data.othernames %] ([% data.othernames | html %]) [% END %] [% data.surname | html -%] -- 2.1.4