Bug 29844: Fix ->search occurrences
[srvgit] / opac / opac-search.pl
index 8d5fe07..b731c6a 100755 (executable)
@@ -436,7 +436,7 @@ my %is_nolimit = map { $_ => 1 } @nolimits;
 if (@searchCategories > 0) {
     my @tabcat;
     foreach my $typecategory (@searchCategories) {
-        my @itemtypes = Koha::ItemTypes->search({ searchcategory => $typecategory });
+        my @itemtypes = Koha::ItemTypes->search({ searchcategory => $typecategory })->as_list;
         push @tabcat, $_->itemtype for @itemtypes;
     }