]> 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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Wed, 12 Oct 2022 13:52:05 +0000 (15:52 +0200)
commit56e8d3a5f10a57048c89cadc8e82d5d6c206ca8f
tree5ec7082a1ba9abf097586bdf0d0121b24339b0cd
parentda50db52a0f44cc86d7c359931171dcd94016fa5
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>
(cherry picked from commit 714d73d7e1a30cdd9a772489887f6ffeae56f799)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
admin/background_jobs.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt