diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index 5f466134e2..61857606be 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -652,6 +652,7 @@ sub BatchCommitRecords { SetImportRecordStatus($rowref->{'import_record_id'}, 'imported'); } elsif ($record_result eq 'ignore') { $num_ignored++; + $recordid = $record_match; if ($record_type eq 'biblio' and defined $recordid and $item_result eq 'create_new') { my ($bib_items_added, $bib_items_errored) = BatchCommitItems($rowref->{'import_record_id'}, $recordid); $num_items_added += $bib_items_added;