From d89f00f3fdb3149776880f143d0a1ca6597b155f Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 28 Apr 2017 12:11:28 -0400 Subject: [PATCH] Bug 18179: Update 1 occurrence in booksellers.pl 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 Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart (cherry picked from commit cc54b596c3bb225f45ca0443728452444b807d4e) Signed-off-by: Fridolin Somers --- acqui/booksellers.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/booksellers.pl b/acqui/booksellers.pl index a4d010f033..6081269056 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.39.5