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

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 53630add0d)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
(cherry picked from commit d5707a9ee6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Tadeusz „tadzik” Sośnierz 2025-05-30 13:14:07 +02:00 committed by Fridolin Somers
parent 8d3e8ce9aa
commit e2b344eba5
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ $template->param(
op => $op,
);
my @plugins = Koha::Plugins::GetPlugins(
my @plugins = Koha::Plugins->new()->GetPlugins(
{
method => 'background_tasks',
}