Bugzilla – Attachment 138660 Details for
Bug 27421
Porting tools/stage-marc-import.pl to BackgroundJob
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27421: Fix job's size for import
Bug-27421-Fix-jobs-size-for-import.patch (text/plain), 1.13 KB, created by
Jonathan Druart
on 2022-08-05 09:50:16 UTC
(
hide
)
Description:
Bug 27421: Fix job's size for import
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-08-05 09:50:16 UTC
Size:
1.13 KB
patch
obsolete
>From 9739c9942f3dba5eba15dd9c16dfb1ca5fe50648 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 5 Aug 2022 11:49:51 +0200 >Subject: [PATCH] Bug 27421: Fix job's size for import > >--- > Koha/BackgroundJob/MARCImportCommitBatch.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/Koha/BackgroundJob/MARCImportCommitBatch.pm b/Koha/BackgroundJob/MARCImportCommitBatch.pm >index 3febc91b513..6cd5292023b 100644 >--- a/Koha/BackgroundJob/MARCImportCommitBatch.pm >+++ b/Koha/BackgroundJob/MARCImportCommitBatch.pm >@@ -20,6 +20,7 @@ use Try::Tiny; > > use base 'Koha::BackgroundJob'; > >+use Koha::Import::Records; > use C4::ImportBatch qw( > BatchCommitRecords > ); >@@ -64,6 +65,8 @@ sub process { > my ( $num_added, $num_updated, $num_items_added, > $num_items_replaced, $num_items_errored, $num_ignored ); > try { >+ my $size = Koha::Import::Records->search({ import_batch_id => $import_batch_id })->count; >+ $self->size($size)->store; > ( > $num_added, $num_updated, $num_items_added, > $num_items_replaced, $num_items_errored, $num_ignored >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27421
:
136127
|
136128
|
136129
|
136216
|
136217
|
136338
|
136339
|
138642
|
138643
|
138656
|
138657
|
138660
|
138881
|
139384
|
139385
|
139386
|
139387
|
139388
|
139448
|
139449
|
139450
|
139797
|
140205
|
140206
|
140207
|
140208
|
140223
|
140224
|
140225
|
140226
|
140227
|
140228
|
140229
|
140230
|
140231
|
140232
|
140233
|
140234
|
140759