Bugzilla – Attachment 160169 Details for
Bug 35624
Plugin tasks 'type' issue with plugins
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35624: Allow jobs to pass a calculated job_type parameter
Bug-35624-Allow-jobs-to-pass-a-calculated-jobtype-.patch (text/plain), 903 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2023-12-20 22:17:58 UTC
(
hide
)
Description:
Bug 35624: Allow jobs to pass a calculated job_type parameter
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-12-20 22:17:58 UTC
Size:
903 bytes
patch
obsolete
>From 82dce1ea4c75ece27eac50099f261d644a52e96c Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 20 Dec 2023 19:17:43 -0300 >Subject: [PATCH] Bug 35624: Allow jobs to pass a calculated job_type parameter > >--- > Koha/BackgroundJob.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/BackgroundJob.pm b/Koha/BackgroundJob.pm >index bcfa68baca1..d6a70160140 100644 >--- a/Koha/BackgroundJob.pm >+++ b/Koha/BackgroundJob.pm >@@ -95,7 +95,7 @@ Return the job_id of the newly created job. > sub enqueue { > my ( $self, $params ) = @_; > >- my $job_type = $self->job_type; >+ my $job_type = $params->{job_type} // $self->job_type; # plugins should pass their own calculated value > my $job_size = $params->{job_size}; > my $job_args = $params->{job_args}; > my $job_context = $params->{job_context} // C4::Context->userenv; >-- >2.43.0
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 35624
: 160169