From 9e40da79584e1db72cec8323c07b6e10a2e0efe4 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] 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 --- 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