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

(-)a/Koha/BackgroundJob.pm (-2 / +1 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) ? C4::Context->userenv->{number} : undef;
102
    my $json_args = encode_json $job_args;
102
    my $json_args = encode_json $job_args;
103
103
104
    $self->set(
104
    $self->set(
105
- 

Return to bug 30345