Bug 29844: (QA follow-up) Fix Koha::Library::Groups->all_libraries
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 3 Feb 2022 12:13:20 +0000 (12:13 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 10 Feb 2022 01:36:23 +0000 (15:36 -1000)
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>
Koha/Library/Group.pm

index a486d35..f85d715 100644 (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 );
     }