@@ -, +, @@ - Batch modify a large set of biblio records - During the modification process, do some SELECT in the session table. You will see the Job data increasing. - At the end of the process, do a last SELECT: job data has disappear. --- C4/BackgroundJob.pm | 19 +++++++++++++++++++ tools/batch_record_modification.pl | 1 + 2 files changed, 20 insertions(+) --- a/C4/BackgroundJob.pm +++ a/C4/BackgroundJob.pm @@ -300,6 +300,25 @@ sub get { return $self->{extra_values}->{$key}; } + +=head2 clear + +=over 4 + +=item $job->clear(); + +=back + +Clear the job from the current session. + +=cut + +sub clear { + my $self = shift; + get_session($self->{sessionID})->clear('job_' . $self->{jobID}); +} + + 1; __END__ --- a/tools/batch_record_modification.pl +++ a/tools/batch_record_modification.pl @@ -62,6 +62,7 @@ if ( $completedJobID ) { view => 'report', ); output_html_with_http_headers $input, $cookie, $template->output; + $job->clear(); exit; } --