Bug 29844: Fix ->search occurrences
[srvgit] / reports / acquisitions_stats.pl
index 1d27870..d6cc868 100755 (executable)
@@ -181,7 +181,7 @@ else {
 
     my $CGIsepChoice = GetDelimiterChoices;
 
-    my @branches = Koha::Libraries->search({}, { order_by => 'branchname' });
+    my @branches = Koha::Libraries->search({}, { order_by => 'branchname' })->as_list;
 
     my $ccode_subfield_structure = GetMarcSubfieldStructureFromKohaField('items.ccode');
     my $ccode_label;