From 3a8709f0bd06d2ced0724d31a63cb9eef979cb3a Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 16 May 2022 19:32:03 +0000 Subject: [PATCH] Bug 26632: (Bug 22532 follow-up) Remove random variables AddBiblioToBatch and AddAuthToBatch were btoh passing a random number for the parameter $update_counts This simply removes that value as should have been done on 22532 To test: 1 - Stage a marc file 2 - Confirm it works befor and after patch Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 66c5ab528cf9ed8afa23dd6f14ddf890ef1e9039) Signed-off-by: Lucas Gass --- C4/ImportBatch.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index 4c4b5fe7d8..aad78bdef6 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -373,13 +373,13 @@ sub BatchStageMarcRecords { $num_valid++; if ($record_type eq 'biblio') { - $import_record_id = AddBiblioToBatch($batch_id, $rec_num, $marc_record, $encoding, int(rand(99999)), 0); + $import_record_id = AddBiblioToBatch($batch_id, $rec_num, $marc_record, $encoding, 0); if ($parse_items) { my @import_items_ids = AddItemsToImportBiblio($batch_id, $import_record_id, $marc_record, 0); $num_items += scalar(@import_items_ids); } } elsif ($record_type eq 'auth') { - $import_record_id = AddAuthToBatch($batch_id, $rec_num, $marc_record, $encoding, int(rand(99999)), 0, $marc_type); + $import_record_id = AddAuthToBatch($batch_id, $rec_num, $marc_record, $encoding, 0, $marc_type); } } } -- 2.39.5