@@ -, +, @@ memory --- Koha/BackgroundJob.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/BackgroundJob.pm +++ a/Koha/BackgroundJob.pm @@ -25,7 +25,6 @@ use Try::Tiny qw( catch try ); use C4::Context; use Koha::DateUtils qw( dt_from_string ); use Koha::Exceptions; -use Koha::Plugins; use Koha::Exceptions::BackgroundJob; use base qw( Koha::Object ); @@ -442,6 +441,7 @@ sub plugin_types_to_classes { my ($self) = @_; unless ( exists $self->{_plugin_mapping} ) { + require Koha::Plugins; my @plugins = Koha::Plugins->new()->GetPlugins( { method => 'background_tasks', } ); foreach my $plugin (@plugins) { --