From be3ebb1eeb9c88fdc4c18a742bfb7d3131d69583 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 16 May 2022 19:37:59 +0000 Subject: [PATCH] Bug 26632: Remove two more occurrences Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Jonathan Druart --- svc/import_bib | 2 +- t/db_dependent/ImportBatch.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/svc/import_bib b/svc/import_bib index 47f5c455b94..ce46454b20b 100755 --- a/svc/import_bib +++ b/svc/import_bib @@ -80,7 +80,7 @@ sub import_bib { return $result; } - my $import_record_id = AddBiblioToBatch($batch_id, 0, $marc_record, "utf8", int(rand(99999))); + my $import_record_id = AddBiblioToBatch($batch_id, 0, $marc_record, "utf8", 1); my @import_items_ids = AddItemsToImportBiblio($batch_id, $import_record_id, $marc_record, 'UPDATE COUNTS'); my $matcher = C4::Matcher->new($params->{record_type} || 'biblio'); diff --git a/t/db_dependent/ImportBatch.t b/t/db_dependent/ImportBatch.t index 0442d4d034a..c1b166f83bc 100755 --- a/t/db_dependent/ImportBatch.t +++ b/t/db_dependent/ImportBatch.t @@ -158,7 +158,7 @@ if (C4::Context->preference('marcflavour') eq 'UNIMARC') { } $record->append_fields(@fields); $original_record->append_fields(@fields); -my $import_record_id = AddBiblioToBatch( $id_import_batch1, 0, $record, 'utf8', int(rand(99999)), 0 ); +my $import_record_id = AddBiblioToBatch( $id_import_batch1, 0, $record, 'utf8', 0 ); AddItemsToImportBiblio( $id_import_batch1, $import_record_id, $record, 0 ); my $import_record = Koha::Import::Records->find($import_record_id); -- 2.25.1