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

(-)a/Koha/BackgroundJob.pm (-1 / +7 lines)
Lines 26-31 use C4::Context; Link Here
26
use Koha::DateUtils qw( dt_from_string );
26
use Koha::DateUtils qw( dt_from_string );
27
use Koha::Exceptions;
27
use Koha::Exceptions;
28
use Koha::Exceptions::BackgroundJob;
28
use Koha::Exceptions::BackgroundJob;
29
use Koha::Plugins;
29
30
30
use base qw( Koha::Object );
31
use base qw( Koha::Object );
31
32
Lines 164-169 sub process { Link Here
164
165
165
    return {} if ref($self) ne 'Koha::BackgroundJob';
166
    return {} if ref($self) ne 'Koha::BackgroundJob';
166
167
168
    # Our background jobs are called in forked processes
169
    # to ensure we have all plugin hooks and data we call
170
    # get_enabled_plugins at the star of processing
171
    # to populate the cache
172
    Koha::Plugins->get_enabled_plugins();
173
167
    my $derived_class = $self->_derived_class;
174
    my $derived_class = $self->_derived_class;
168
175
169
    $args ||= {};
176
    $args ||= {};
170
- 

Return to bug 36736