view => 'report',
);
output_html_with_http_headers $input, $cookie, $template->output;
+ $job->clear();
exit;
}
errors => ['no_template_defined'],
);
output_html_with_http_headers $input, $cookie, $template->output;
+ exit;
}
if ( $mmtid ) {
my ( $job );
if ( $runinbackground ) {
my $job_size = scalar( @record_ids );
- $job = C4::BackgroundJob->new( $sessionID, "FIXME", $ENV{SCRIPT_NAME}, $job_size );
+ $job = C4::BackgroundJob->new( $sessionID, "FIXME", '/cgi-bin/koha/tools/batch_record_modification.pl', $job_size );
my $job_id = $job->id;
if (my $pid = fork) {
$dbh->{InactiveDestroy} = 1;
close STDOUT;
close STDERR;
} else {
- warn "fork failed while attempting to run $ENV{'SCRIPT_NAME'} as a background job";
+ warn "fork failed while attempting to run tools/batch_record_modification.pl as a background job";
exit 0;
}
}