From f646bebf592a63ff300b0609c234157c04e82717 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 28 Apr 2017 11:12:16 -0400 Subject: [PATCH] Bug 18510 - Errors on Patron Details page ( moremember.pl ) Cannot use "->find" in list context at /home/vagrant/kohaclone/members/moremember.pl line 334. Test Plan: 1) Got to moremember.pl, note error 2) Apply this patch 3) Refresh page, no error! --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc | 2 +- members/moremember.pl | 2 +- 2 files 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..c628dea 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 %] diff --git a/members/moremember.pl b/members/moremember.pl index 20044a6..95a8993 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -356,7 +356,7 @@ $template->param( PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20, relatives_issues_count => $relatives_issues_count, relatives_borrowernumbers => \@relatives, - borrower => Koha::Patrons->find( $borrowernumber ), + borrower => scalar Koha::Patrons->find( $borrowernumber ), ); output_html_with_http_headers $input, $cookie, $template->output; -- 2.10.2