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

(-)a/Koha/BackgroundJob/MARCImportCommitBatch.pm (-1 / +3 lines)
Lines 20-25 use Try::Tiny; Link Here
20
20
21
use base 'Koha::BackgroundJob';
21
use base 'Koha::BackgroundJob';
22
22
23
use Koha::Import::Records;
23
use C4::ImportBatch qw(
24
use C4::ImportBatch qw(
24
    BatchCommitRecords
25
    BatchCommitRecords
25
);
26
);
Lines 64-69 sub process { Link Here
64
    my ( $num_added, $num_updated, $num_items_added,
65
    my ( $num_added, $num_updated, $num_items_added,
65
        $num_items_replaced, $num_items_errored, $num_ignored );
66
        $num_items_replaced, $num_items_errored, $num_ignored );
66
    try {
67
    try {
68
        my $size = Koha::Import::Records->search({ import_batch_id => $import_batch_id })->count;
69
        $self->size($size)->store;
67
        (
70
        (
68
            $num_added, $num_updated, $num_items_added,
71
            $num_added, $num_updated, $num_items_added,
69
            $num_items_replaced, $num_items_errored, $num_ignored
72
            $num_items_replaced, $num_items_errored, $num_ignored
70
- 

Return to bug 27421