[Koha-bugs] [Bug 24606] Allow storing item values as a template for creating new items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 17 07:47:44 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24606

--- Comment #73 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
The correct pattern is in BackgroundJob:

sub decoded_data {
    my ($self) = @_;

    return $self->data ? $self->json->decode( $self->data ) : undef;
}

sub set_encoded_data {
    my ( $self, $data ) = @_;

    return $self->data( $data ? $self->json->encode($data) : undef );
}

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list