Bugzilla – Attachment 139450 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: (QA follow-up) Work in progress: looking at progress/size
Bug-27421-QA-follow-up-Work-in-progress-looking-at.patch (text/plain), 1.05 KB, created by
Marcel de Rooy
on 2022-08-19 08:00:20 UTC
(
hide
)
Description:
Bug 27421: (QA follow-up) Work in progress: looking at progress/size
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-08-19 08:00:20 UTC
Size:
1.05 KB
patch
obsolete
>From 21d4bd97a9cad4f6a6ff2b71368423f0c61ed674 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 19 Aug 2022 07:54:55 +0000 >Subject: [PATCH] Bug 27421: (QA follow-up) Work in progress: looking at > progress/size >Content-Type: text/plain; charset=utf-8 > >--- > Koha/BackgroundJob/MARCImportRevertBatch.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/Koha/BackgroundJob/MARCImportRevertBatch.pm b/Koha/BackgroundJob/MARCImportRevertBatch.pm >index bd125a07e8..3b022441c2 100644 >--- a/Koha/BackgroundJob/MARCImportRevertBatch.pm >+++ b/Koha/BackgroundJob/MARCImportRevertBatch.pm >@@ -23,6 +23,7 @@ use base 'Koha::BackgroundJob'; > use C4::ImportBatch qw( > BatchRevertRecords > ); >+use Koha::Import::Records; > > =head1 NAME > >@@ -65,6 +66,8 @@ sub process { > ); > > try { >+ my $size = Koha::Import::Records->search({ import_batch_id => $import_batch_id })->count; >+ $self->size($size)->store; > ( > $num_deleted, $num_errors, $num_reverted, > $num_items_deleted, $num_ignored >-- >2.20.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