From 083d7dfae89c9c3e7a75b02e7b3abb3b26f82531 Mon Sep 17 00:00:00 2001
From: Nick Clemens <nick@bywatersolutions.com>
Date: Fri, 18 Feb 2022 16:15:55 +0000
Subject: [PATCH] Bug 28782: (QA follow-up) Bug 29844 follow-up

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
---
 koha-tmpl/intranet-tmpl/prog/js/pages/results.js | 1 +
 reserve/request.pl                               | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js b/koha-tmpl/intranet-tmpl/prog/js/pages/results.js
index c7b47bdcb3..a52156b787 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js
+++ b/koha-tmpl/intranet-tmpl/prog/js/pages/results.js
@@ -343,6 +343,7 @@ function placeHold () {
         bibs.push(bib);
     });
     bibs.forEach(function (bib) {
+        console.log(bib);
         var bib_param = $("<input>").attr("type", "hidden").attr("name", "biblionumber").val(bib);
 	$('#hold_form').append(bib_param);
     });
diff --git a/reserve/request.pl b/reserve/request.pl
index d86481e3da..19c5c13d0a 100755
--- a/reserve/request.pl
+++ b/reserve/request.pl
@@ -173,7 +173,7 @@ if($findclub) {
         my @clubs = Koha::Clubs->search( [
             { name => { like => '%'.$findclub.'%' } },
             { description => { like => '%'.$findclub.'%' } }
-        ] );
+        ] )->as_list;
         if( scalar @clubs == 1 ) {
             $club_hold = $clubs[0]->id;
         } elsif ( @clubs ) {
-- 
2.30.2