]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 16 Aug 2022 12:09:12 +0000 (09:09 -0300)
commit931f4bd79776215b8cb1e656d58abf80b7aad8db
tree99240e8831d314e14de17f0b0c9176a2a17079ea
parent1f098a8c866fecce9fce4edf22f0e27486c59d11
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>
admin/background_jobs.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt