View | Details | Raw Unified | Return to bug 33576
Collapse All | Expand All

(-)a/C4/ImportBatch.pm (-5 / +5 lines)
Lines 714-728 sub BatchCommitRecords { Link Here
714
714
715
    $sth->finish();
715
    $sth->finish();
716
716
717
    SetImportBatchStatus($batch_id, 'imported');
718
719
    # Moved final commit to the end
720
    $schema->txn_commit;
721
717
    if ( @biblio_ids ) {
722
    if ( @biblio_ids ) {
718
        my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX });
723
        my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX });
719
        $indexer->index_records( \@biblio_ids, "specialUpdate", "biblioserver" );
724
        $indexer->index_records( \@biblio_ids, "specialUpdate", "biblioserver" );
720
    }
725
    }
721
726
722
    SetImportBatchStatus($batch_id, 'imported');
723
724
    # Moved final commit to the end
725
    $schema->txn_commit;
726
727
727
    return ($num_added, $num_updated, $num_items_added, $num_items_replaced, $num_items_errored, $num_ignored);
728
    return ($num_added, $num_updated, $num_items_added, $num_items_replaced, $num_items_errored, $num_ignored);
728
}
729
}
729
- 

Return to bug 33576