From 32a4638d53cb678ba6d86db78463df7298d36711 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 1 Jun 2022 18:36:44 +0000 Subject: [PATCH] Bug 29325: Call progress callback one last time to confirm comppletion Content-Type: text/plain; charset=utf-8 Previously after finishing the loop we were still in a transaction that never completed - we should report progress when done one final time to commit the last records To test: 1 - Stage a file with > 100 records 2 - Commit file 3 - Confirm batch is imported and no records left as staged Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- C4/ImportBatch.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index a6a95c4703..5dd8095513 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -720,6 +720,7 @@ sub BatchCommitRecords { SetImportRecordStatus($rowref->{'import_record_id'}, 'ignored'); } } + &$progress_callback($rec_num, $schema); # Make sure to commit the final chunk that didn't hit the commit threshhold $sth->finish(); if ( @biblio_ids ) { -- 2.20.1