Bug 29844: Fix ->search occurrences
[srvgit] / acqui / addorderiso2709.pl
index 63cfb2a..1ce63d1 100755 (executable)
@@ -97,7 +97,7 @@ if ($op eq ""){
 } elsif ($op eq "batch_details"){
 #display lines inside the selected batch
     # get currencies (for change rates calcs if needed)
-    my @currencies = Koha::Acquisition::Currencies->search;
+    my @currencies = Koha::Acquisition::Currencies->search->as_list;
 
     $template->param("batch_details" => 1,
                      "basketno"      => $cgiparams->{'basketno'},
@@ -611,7 +611,7 @@ sub import_biblios_list {
     my $overlay_action = GetImportBatchOverlayAction($import_batch_id);
     my $nomatch_action = GetImportBatchNoMatchAction($import_batch_id);
     my $item_action = GetImportBatchItemAction($import_batch_id);
-    my @itypes = Koha::ItemTypes->search;
+    my @itypes = Koha::ItemTypes->search->as_list;
     $template->param(biblio_list => \@list,
                         num_results => $num_records,
                         import_batch_id => $import_batch_id,