Bugzilla – Attachment 66955 Details for
Bug 19214
Patron clubs: Template process failed: undef error - Cannot use "->find" in list context
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19214: prevent crash if club_template_field is called in list context
Bug-19214-prevent-crash-if-clubtemplatefield-is-ca.patch (text/plain), 900 bytes, created by
Jonathan Druart
on 2017-09-07 17:17:05 UTC
(
hide
)
Description:
Bug 19214: prevent crash if club_template_field is called in list context
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-09-07 17:17:05 UTC
Size:
900 bytes
patch
obsolete
>From baaa0c5faa7558dfb94217880ad8a4ff3ce286f1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 7 Sep 2017 14:15:20 -0300 >Subject: [PATCH] Bug 19214: prevent crash if club_template_field is called in > list context > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Club/Field.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Club/Field.pm b/Koha/Club/Field.pm >index 6f92d83f31..56f5aa03e8 100644 >--- a/Koha/Club/Field.pm >+++ b/Koha/Club/Field.pm >@@ -46,7 +46,7 @@ Represents the value set at creation time for a Koha::Club::Template::Field > sub club_template_field { > my ( $self ) = @_; > >- return Koha::Club::Template::Fields->find( $self->club_template_field_id ); >+ return scalar Koha::Club::Template::Fields->find( $self->club_template_field_id ); > } > > =head3 type >-- >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 19214
:
66661
|
66895
|
66954
| 66955