@@ -, +, @@ --- Koha/BackgroundJob.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- a/Koha/BackgroundJob.pm +++ a/Koha/BackgroundJob.pm @@ -24,11 +24,6 @@ use Try::Tiny qw( catch try ); use C4::Context; use Koha::DateUtils qw( dt_from_string ); use Koha::Exceptions; -use Koha::BackgroundJob::BatchUpdateBiblio; -use Koha::BackgroundJob::BatchUpdateAuthority; -use Koha::BackgroundJob::BatchDeleteBiblio; -use Koha::BackgroundJob::BatchDeleteAuthority; -use Koha::BackgroundJob::BatchCancelHold; use base qw( Koha::Object ); @@ -243,6 +238,7 @@ sub _derived_class { Koha::Exceptions::Exception->throw($job_type . ' is not a valid job_type') unless $class; + eval "require $class"; return $class->new; } --