From 29c39e26d7db6fe30756fc221d4f0a2f0985ad85 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 3 Feb 2022 12:13:20 +0000 Subject: [PATCH] Bug 29844: (QA follow-up) Fix Koha::Library::Groups->all_libraries I think a rebase perhaps lost a change here.. this fix gets the unit tests passing again. Signed-off-by: Martin Renvoize --- Koha/Library/Group.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Library/Group.pm b/Koha/Library/Group.pm index a486d35ecc..f85d715dbb 100644 --- a/Koha/Library/Group.pm +++ b/Koha/Library/Group.pm @@ -144,8 +144,8 @@ sub all_libraries { my @libraries; - push (@libraries, $self->libraries); - my @children = $self->children->search({ branchcode => undef }); + push (@libraries, $self->libraries->as_list); + my @children = $self->children->search({ branchcode => undef })->as_list; foreach my $c (@children) { push( @libraries, $c->all_libraries ); } -- 2.20.1