From 50feb7a22d9d705b5381a99fcd93bcca2b942c81 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 Signed-off-by: Martin Renvoize --- 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 8d0aa7424e..1aa4a64e72 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.39.5