From 8cc678d68a20eb67529e6fcd8c3848a3076af6c7 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 28 Dec 2016 09:38:09 +0100 Subject: [PATCH] Bug 17240 - Allow processes that rely on background jobs run in Plack mode - followup 2 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 6ea0317..07e5e57 100755 --- a/tools/batch_record_modification.pl +++ b/tools/batch_record_modification.pl @@ -235,12 +235,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