Bugzilla – Attachment 62858 Details for
Bug 18511
Error loading booksellers.pl - Cannot use "->find" in list context
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18511 - Error loading booksellers.pl - Cannot use "->find" in list context
Bug-18511---Error-loading-booksellerspl---Cannot-u.patch (text/plain), 1023 bytes, created by
Nick Clemens (kidclamp)
on 2017-04-28 16:12:54 UTC
(
hide
)
Description:
Bug 18511 - Error loading booksellers.pl - Cannot use "->find" in list context
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-04-28 16:12:54 UTC
Size:
1023 bytes
patch
obsolete
>From c9892b4664edba3ffb27b97df56b9481054ad980 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 28 Apr 2017 12:11:28 -0400 >Subject: [PATCH] Bug 18511 - Error loading booksellers.pl - Cannot use > "->find" in list context > >To test: >1 - Load http://localhost:8081/cgi-bin/koha/acqui/booksellers.pl?booksellerid=1 >2 - Should get internal server erro >3 - Apply patch >4 - Reload >5 - Should not get error >--- > acqui/booksellers.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/acqui/booksellers.pl b/acqui/booksellers.pl >index a4d010f..6081269 100755 >--- a/acqui/booksellers.pl >+++ b/acqui/booksellers.pl >@@ -83,7 +83,7 @@ my $allbaskets= $query->param('allbaskets')||0; > my @suppliers; > > if ($booksellerid) { >- push @suppliers, Koha::Acquisition::Booksellers->find( $booksellerid ); >+ push @suppliers, scalar Koha::Acquisition::Booksellers->find( $booksellerid ); > } else { > @suppliers = Koha::Acquisition::Booksellers->search({ name => $supplier }); > } >-- >2.1.4
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 18511
: 62858