Bug 19130: (followup) Controller scripts should preserve behaviour
[koha.git] / acqui / check_duplicate_barcode_ajax.pl
index fcd85fe..1655ac4 100755 (executable)
@@ -41,7 +41,7 @@ if ($auth_status ne "ok") {
 my $json;
 
 #Check if the barcodes already exist.
-my @barcodes = $input->param('barcodes');
+my @barcodes = $input->multi_param('barcodes');
 foreach my $barcode (@barcodes) {
     my $existing_itemnumber = GetItemnumberFromBarcode($barcode);
     if ($existing_itemnumber) {