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

(-)a/Koha/BackgroundJob.pm (-3 / +2 lines)
Lines 245-251 Returns the decoded JSON contents from $self->data. Link Here
245
sub decoded_data {
245
sub decoded_data {
246
    my ($self) = @_;
246
    my ($self) = @_;
247
247
248
    return decode_json($self->data);
248
    return $self->data ? decode_json( $self->data ) : undef;
249
}
249
}
250
250
251
=head3 set_encoded_data
251
=head3 set_encoded_data
Lines 259-265 Serializes I<$data> as a JSON string and sets the I<data> attribute with it. Link Here
259
sub set_encoded_data {
259
sub set_encoded_data {
260
    my ( $self, $data ) = @_;
260
    my ( $self, $data ) = @_;
261
261
262
    return $self->data( encode_json($data) );
262
    return $self->data( $data ? encode_json($data) : undef );
263
}
263
}
264
264
265
=head3 job_type
265
=head3 job_type
266
- 

Return to bug 30734