From e618657d327230c8fbf78950312051665b73df86 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 5 Sep 2022 10:33:01 +0000 Subject: [PATCH] Bug 27421: (QA follow-up) Sub finish should respect failed status too Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- Koha/BackgroundJob.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/BackgroundJob.pm b/Koha/BackgroundJob.pm index d146c38aad..98e22e2c62 100644 --- a/Koha/BackgroundJob.pm +++ b/Koha/BackgroundJob.pm @@ -246,7 +246,7 @@ Makes the job record as finished. If the job status is I, it is kept. sub finish { my ( $self, $data ) = @_; - $self->status('finished') unless $self->status eq 'cancelled'; + $self->status('finished') unless $self->status eq 'cancelled' or $self->status eq 'failed'; return $self->set( { -- 2.20.1