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

(-)a/Koha/BackgroundJob.pm (-2 / +3 lines)
Lines 86-92 sub enqueue { Link Here
86
    my $job_size = $params->{job_size};
86
    my $job_size = $params->{job_size};
87
    my $job_args = $params->{job_args};
87
    my $job_args = $params->{job_args};
88
88
89
    my $borrowernumber = C4::Context->userenv->{number}; # FIXME Handle non GUI calls
89
    my $borrowernumber = C4::Context->userenv
90
        ? C4::Context->userenv->{number}
91
        : undef;
90
    my $json_args = encode_json $job_args;
92
    my $json_args = encode_json $job_args;
91
    my $job_id;
93
    my $job_id;
92
    $self->_result->result_source->schema->txn_do(
94
    $self->_result->result_source->schema->txn_do(
93
- 

Return to bug 27344