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

(-)a/C4/Log.pm (-2 lines)
Lines 124-131 sub logaction { Link Here
124
    $diff //= encode_json( diff( $original, $updated, noU => 1 ) )
124
    $diff //= encode_json( diff( $original, $updated, noU => 1 ) )
125
        if $original && ref $updated eq 'HASH';
125
        if $original && ref $updated eq 'HASH';
126
126
127
    $infos = Data::Dumper::Dumper( $infos ) if ref $infos;
128
129
    Koha::ActionLog->new(
127
    Koha::ActionLog->new(
130
        {
128
        {
131
            timestamp => \'NOW()',
129
            timestamp => \'NOW()',
(-)a/Koha/AuthorisedValue.pm (-8 / +8 lines)
Lines 109-120 sub store { Link Here
109
    if ( C4::Context->preference("AuthorizedValuesLog") ) {
109
    if ( C4::Context->preference("AuthorizedValuesLog") ) {
110
        $self->replace_library_limits($branches);
110
        $self->replace_library_limits($branches);
111
        my $action = $new_authorized_value ? 'CREATE' : 'MODIFY';
111
        my $action = $new_authorized_value ? 'CREATE' : 'MODIFY';
112
112
        my $output = {
113
        logaction(
114
            'AUTHORIZEDVALUE',
115
            $action,
116
            $self->id,
117
            {
118
                authorised_value => $self->authorised_value,
113
                authorised_value => $self->authorised_value,
119
                id               => $self->id,
114
                id               => $self->id,
120
                category         => $self->category,
115
                category         => $self->category,
Lines 122-128 sub store { Link Here
122
                lib              => $self->lib,
117
                lib              => $self->lib,
123
                lib_opac         => $self->lib_opac,
118
                lib_opac         => $self->lib_opac,
124
                imageurl         => $self->imageurl
119
                imageurl         => $self->imageurl
125
            },
120
        };
121
        my $formatted_output = Data::Dumper::Dumper($object);
122
        logaction(
123
            'AUTHORIZEDVALUE',
124
            $action,
125
            $self->id,
126
            $formatted_output,
126
            undef,
127
            undef,
127
            $original
128
            $original
128
        );
129
        );
129
- 

Return to bug 35630