Bugzilla – Attachment 62829 Details for
Bug 18510
Errors on Patron Details page ( moremember.pl )
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18510 - Errors on Patron Details page ( moremember.pl )
Bug-18510---Errors-on-Patron-Details-page--moremem.patch (text/plain), 1.74 KB, created by
Kyle M Hall (khall)
on 2017-04-28 15:13:40 UTC
(
hide
)
Description:
Bug 18510 - Errors on Patron Details page ( moremember.pl )
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2017-04-28 15:13:40 UTC
Size:
1.74 KB
patch
obsolete
>From f646bebf592a63ff300b0609c234157c04e82717 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18510
: 62829