View | Details | Raw Unified | Return to bug 22417
Collapse All | Expand All

(-)a/Koha/BackgroundJob/BatchUpdateAuthority.pm (-2 lines)
Lines 75-82 sub process { Link Here
75
        total_success => 0,
75
        total_success => 0,
76
    };
76
    };
77
    my @messages;
77
    my @messages;
78
    my $dbh = C4::Context->dbh;
79
    $dbh->{RaiseError} = 1;
80
    RECORD_IDS: for my $record_id ( sort { $a <=> $b } @record_ids ) {
78
    RECORD_IDS: for my $record_id ( sort { $a <=> $b } @record_ids ) {
81
        next unless $record_id;
79
        next unless $record_id;
82
        # Authorities
80
        # Authorities
(-)a/Koha/BackgroundJob/BatchUpdateBiblio.pm (-5 lines)
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
- 

Return to bug 22417