From bd86c5d956cee8b3652b732307e7de7cb9eb45f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Sun, 21 May 2017 17:04:18 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 18647: Internal server error on moremember.pl To reproduce: Go to the Details page of a member. Result: Internal server error Plack error log: Template process failed: undef error - The method category_code is not covered by tests! at (...)/koha/C4/Templates.pm line 121. To test: Apply patch Try to reproduce - patron's detail page should now display without error Signed-off-by: Josef Moravec --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 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 caf45d6..5a844e8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc @@ -1,5 +1,5 @@ [%- IF ( borrower.borrowernumber ) %] - [%- IF borrower.category_type == 'I' %] + [%- IF borrower.category.category_type == 'I' %] [%- borrower.surname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] [%- ELSE %] [%- IF invert_name %] @@ -12,7 +12,7 @@ ([% borrower.cardnumber | html %]) [%- END %] [%- ELSIF ( borrowernumber ) %] - [%- IF category_type == 'I' %] + [%- IF borrower.category.category_type == 'I' %] [%- surname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] [%- ELSE %] [%- IF invert_name %] -- 2.1.4