From 868065010c6c8fc5351e4f47e162c0b490c80a5e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 15 Feb 2022 08:42:49 +0100 Subject: [PATCH] Bug 30089: (bug 29844 follow-up) Fix placing holds - OPAC The method Koha::AuthorisedValues->authorised_value is not covered by tests! Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens https://bugs.koha-community.org/show_bug.cgi?id=29969 --- opac/opac-reserve.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 7be38e2568..a998a5bb65 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -460,7 +460,7 @@ foreach my $biblioNum (@biblionumbers) { } } - my @notforloan_avs = Koha::AuthorisedValues->search_by_koha_field({ kohafield => 'items.notforloan', frameworkcode => $frameworkcode }); + my @notforloan_avs = Koha::AuthorisedValues->search_by_koha_field({ kohafield => 'items.notforloan', frameworkcode => $frameworkcode })->as_list; my $notforloan_label_of = { map { $_->authorised_value => $_->opac_description } @notforloan_avs }; my $visible_items = { map { $_->itemnumber => $_ } $biblio->items->filter_by_visible_in_opac( { patron => $patron } )->as_list }; -- 2.30.2