Lines 31-36
sub enqueue {
Link Here
|
31 |
my $job_size = $params->{job_size}; |
31 |
my $job_size = $params->{job_size}; |
32 |
my $job_args = $params->{job_args}; |
32 |
my $job_args = $params->{job_args}; |
33 |
|
33 |
|
|
|
34 |
my $borrowernumber = C4::Context->userenv->{number}; # FIXME Handle non GUI calls |
34 |
my $json_args = encode_json $job_args; |
35 |
my $json_args = encode_json $job_args; |
35 |
$self->set({ |
36 |
$self->set({ |
36 |
status => 'new', |
37 |
status => 'new', |
Lines 38-44
sub enqueue {
Link Here
|
38 |
size => $job_size, |
39 |
size => $job_size, |
39 |
data => $json_args, |
40 |
data => $json_args, |
40 |
enqueued_on => dt_from_string, |
41 |
enqueued_on => dt_from_string, |
41 |
borrowernumber => C4::Context->userenv->{id}, # FIXME Handle non GUI calls |
42 |
borrowernumber => $borrowernumber, |
42 |
})->store; |
43 |
})->store; |
43 |
|
44 |
|
44 |
my $job_id = $self->id; |
45 |
my $job_id = $self->id; |
45 |
- |
|
|