From 4e0195fe46ba7e00abedf7e1192a591d331a4d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadeusz=20=E2=80=9Etadzik=E2=80=9D=20So=C5=9Bnierz?= Date: Fri, 30 May 2025 13:14:07 +0200 Subject: [PATCH] Bug 40033: Call GetPlugins correctly in background_jobs.pl Test plan: 1. Install a plugin that does not have any background_tasks, e.g. https://github.com/HKS3/HKS3GeoSearch/releases/tag/v0.12 2. Navigate to http://localhost:8081/cgi-bin/koha/admin/background_jobs.pl, observe a 500 3. Apply patch 4. Observe no 500 --- admin/background_jobs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/background_jobs.pl b/admin/background_jobs.pl index 275e8bcb89..d1ce61e33e 100755 --- a/admin/background_jobs.pl +++ b/admin/background_jobs.pl @@ -79,7 +79,7 @@ $template->param( op => $op, ); -my @plugins = Koha::Plugins::GetPlugins( +my @plugins = Koha::Plugins->new()->GetPlugins( { method => 'background_tasks', } -- 2.47.2