Bug 31245: Do not try to report results if task not started
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Andrew <andrewfh@dubcolib.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commit12bc623ae7) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit3d3fc0f85a) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
56e8d3a5f1
commit
ca7cb4896d
|
|
@ -173,9 +173,9 @@ Sent the infos to generate the table containing the details of the modified item
|
|||
sub additional_report {
|
||||
my ( $self, $args ) = @_;
|
||||
|
||||
my $job = Koha::BackgroundJobs->find( $args->{job_id} );
|
||||
return unless $self->report->{modified_itemnumbers};
|
||||
|
||||
my $itemnumbers = $job->report->{modified_itemnumbers};
|
||||
my $itemnumbers = $self->report->{modified_itemnumbers};
|
||||
if ( scalar(@$itemnumbers) > C4::Context->preference('MaxItemsToDisplayForBatchMod') ) {
|
||||
return { too_many_items_display => 1 };
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue