From 3cfdb305c4290250de0eb34304593189c02c0025 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 23 Feb 2022 11:02:24 +0100 Subject: [PATCH] Bug 29844: Fix advanced editor The method Koha::Libraries->branchcode is not covered by tests! Trace begun at /kohadevbox/koha/Koha/Objects.pm line 572 Koha::Objects::AUTOLOAD('Koha::Libraries=HASH(0x563bf134b810)') called at /kohadevbox/koha/svc/cataloguing/framework line 33 Signed-off-by: Fridolin Somers --- svc/cataloguing/framework | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svc/cataloguing/framework b/svc/cataloguing/framework index f7456128ad..1014ea5de9 100755 --- a/svc/cataloguing/framework +++ b/svc/cataloguing/framework @@ -30,7 +30,7 @@ foreach my $tag ( sort keys %$tagslib ) { my $schema = Koha::Database->new->schema; my $authorised_values = {}; -my $branches = { map { $_->branchcode => $_->branchname } Koha::Libraries->search_filtered }; +my $branches = { map { $_->branchcode => $_->branchname } Koha::Libraries->search_filtered->as_list }; $authorised_values->{branches} = []; foreach my $thisbranch ( sort keys %$branches ) { push @{ $authorised_values->{branches} }, { value => $thisbranch, lib => $branches->{$thisbranch} }; -- 2.39.5