Lines 54-61
Process the modification.
Link Here
|
54 |
sub process { |
54 |
sub process { |
55 |
my ( $self, $args ) = @_; |
55 |
my ( $self, $args ) = @_; |
56 |
|
56 |
|
57 |
my $job_type = $args->{job_type}; |
|
|
58 |
|
59 |
my $job = Koha::BackgroundJobs->find( $args->{job_id} ); |
57 |
my $job = Koha::BackgroundJobs->find( $args->{job_id} ); |
60 |
|
58 |
|
61 |
if ( !exists $args->{job_id} || !$job || $job->status eq 'cancelled' ) { |
59 |
if ( !exists $args->{job_id} || !$job || $job->status eq 'cancelled' ) { |
Lines 79-86
sub process {
Link Here
|
79 |
total_success => 0, |
77 |
total_success => 0, |
80 |
}; |
78 |
}; |
81 |
my @messages; |
79 |
my @messages; |
82 |
my $dbh = C4::Context->dbh; |
|
|
83 |
$dbh->{RaiseError} = 1; |
84 |
RECORD_IDS: for my $biblionumber ( sort { $a <=> $b } @record_ids ) { |
80 |
RECORD_IDS: for my $biblionumber ( sort { $a <=> $b } @record_ids ) { |
85 |
|
81 |
|
86 |
last if $job->get_from_storage->status eq 'cancelled'; |
82 |
last if $job->get_from_storage->status eq 'cancelled'; |
87 |
- |
|
|