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

(-)a/Koha/BackgroundJob.pm (-2 / +3 lines)
Lines 98-104 sub enqueue { Link Here
98
    my $job_size = $params->{job_size};
98
    my $job_size = $params->{job_size};
99
    my $job_args = $params->{job_args};
99
    my $job_args = $params->{job_args};
100
100
101
    my $borrowernumber = C4::Context->userenv->{number}; # FIXME Handle non GUI calls
101
    my $borrowernumber = C4::Context->userenv
102
        ? C4::Context->userenv->{number}
103
        : undef;
102
    my $json_args = encode_json $job_args;
104
    my $json_args = encode_json $job_args;
103
    my $job_id;
105
    my $job_id;
104
    $self->_result->result_source->schema->txn_do(
106
    $self->_result->result_source->schema->txn_do(
105
- 

Return to bug 27344