Bug 26632: Remove two more occurrences

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2022-05-16 19:37:59 +00:00 committed by Tomas Cohen Arazi
parent 66c5ab528c
commit 089f5a4cf5
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 2 additions and 2 deletions

View file

@ -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');

View file

@ -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);