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 <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Martin Renvoize 2022-02-03 12:13:20 +00:00 committed by Fridolin Somers
parent 571a13f667
commit 0bec03e861

View file

@ -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 );
}