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:
parent
571a13f667
commit
0bec03e861
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue