From 98f3affb5b5441d05a0d27799443ca3e65c2b29f 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 --- 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 47f5c455b9..ce46454b20 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 0442d4d034..c1b166f83b 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.30.2