From 8a8ac0d08880cdbfaf3d5ef61b3f57d953dfb714 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! --- 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 e8810650f75..3730832bdcd 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.25.1