From c47410dee2d6066e28132db4dd780e10f13e7124 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 28 Dec 2016 09:38:09 +0100 Subject: [PATCH] Bug 17240: (followup 2) Allow processes that rely on background jobs run in Plack mode Followup 2 If not running in background mode, some calls are made on $job var in tools/batch_record_modification.pl. --- tools/batch_record_modification.pl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/batch_record_modification.pl b/tools/batch_record_modification.pl index bfdb758..52915e2 100755 --- a/tools/batch_record_modification.pl +++ b/tools/batch_record_modification.pl @@ -237,12 +237,14 @@ if ( $op eq 'form' ) { } } - $job->set({ - view => 'report', - report => $report, - messages => \@messages, - }); - $job->progress( ++$progress ) if $runinbackground; + if ($runinbackground) { + $job->set({ + view => 'report', + report => $report, + messages => \@messages, + }); + $job->progress( ++$progress ); + } } if ($runinbackground) { -- 2.7.4