]> git.koha-community.org Git - koha.git/commit
Bug 31245: Do not call report for job detail view if job not started
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 27 Jul 2022 08:35:08 +0000 (10:35 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 30 Sep 2022 22:47:38 +0000 (22:47 +0000)
commit714d73d7e1a30cdd9a772489887f6ffeae56f799
tree401eb72ce4cefc9af6fb6ec363f9b9fa9ea46905
parentad213be29219c822a88fbf5fc7aaf6eb942280d7
Bug 31245: Do not call report for job detail view if job not started

We should not generate the report if the job hasn't started yet

Test plan:
Stop the koha-worker processes, modify a new item using the batch mod
tool, then see the detail page of the job

Without this patch an error is generated:
Can't use an undefined value as an ARRAY reference at /kohadevbox/koha/Koha/BackgroundJob/BatchUpdateItem.pm line 175

Signed-off-by: Andrew <andrewfh@dubcolib.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 931f4bd79776215b8cb1e656d58abf80b7aad8db)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
admin/background_jobs.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt