From 0bec03e861bd242b6188025ae11b16bd080e0ea4 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 Signed-off-by: Tomas Cohen Arazi Signed-off-by: Fridolin Somers --- 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.39.5