Bugzilla – Attachment 97701 Details for
Bug 19809
Koha::Objects::find no longer need to be forbidden in list context
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19809: Remove some new occurrences
Bug-19809-Remove-some-new-occurrences.patch (text/plain), 1.99 KB, created by
Jonathan Druart
on 2020-01-22 10:51:35 UTC
(
hide
)
Description:
Bug 19809: Remove some new occurrences
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-01-22 10:51:35 UTC
Size:
1.99 KB
patch
obsolete
>From 7481886809b30ff2b05b4d620932d3916ba04121 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 22 Jan 2020 11:50:19 +0100 >Subject: [PATCH] Bug 19809: Remove some new occurrences > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Patron.pm | 2 +- > Koha/Patron/Relationship.pm | 4 ++-- > opac/opac-memberentry.pl | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index f48e67a696..44fd07de86 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -414,7 +414,7 @@ sub category { > sub image { > my ( $self ) = @_; > >- return scalar Koha::Patron::Images->find( $self->borrowernumber ); >+ return Koha::Patron::Images->find( $self->borrowernumber ); > } > > =head3 library >diff --git a/Koha/Patron/Relationship.pm b/Koha/Patron/Relationship.pm >index f3e3e65345..be5a676050 100644 >--- a/Koha/Patron/Relationship.pm >+++ b/Koha/Patron/Relationship.pm >@@ -82,7 +82,7 @@ sub guarantor { > > return unless $self->guarantor_id; > >- return scalar Koha::Patrons->find( $self->guarantor_id ); >+ return Koha::Patrons->find( $self->guarantor_id ); > } > > =head3 guarantee >@@ -94,7 +94,7 @@ Returns the Koha::Patron object for the guarantee > sub guarantee { > my ( $self ) = @_; > >- return scalar Koha::Patrons->find( $self->guarantee_id ); >+ return Koha::Patrons->find( $self->guarantee_id ); > } > > =head3 type >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 62cdd0d205..2272f16921 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -332,7 +332,7 @@ elsif ( $action eq 'edit' ) { #Display logged in borrower's data > } > > my $captcha = random_string("CCCCC"); >-my $patron_param = scalar Koha::Patrons->find( $borrowernumber ); >+my $patron_param = Koha::Patrons->find( $borrowernumber ); > $template->param( > has_guarantor_flag => $patron_param->guarantor_relationships->guarantors->_resultset->count > ) if $patron_param; >-- >2.11.0
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 19809
:
69790
|
72977
|
91287
|
92825
|
95115
|
97700
| 97701