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

(-)a/C4/Log.pm (-3 / +3 lines)
Lines 77-88 sub logaction { Link Here
77
    $usernumber ||= 0;
77
    $usernumber ||= 0;
78
    $interface //= C4::Context->interface;
78
    $interface //= C4::Context->interface;
79
79
80
    if ( ref($infos) && ref($infos) !~ /HASH|ARRAY/ && $infos->isa('Koha::Object') ) {
80
    my $ref_type = ref($infos);
81
    if( $ref_type =~ /^Koha::/ ) {
81
        $infos = $infos->get_from_storage if $infos->in_storage;
82
        $infos = $infos->get_from_storage if $infos->in_storage;
82
        local $Data::Dumper::Sortkeys = 1;
83
        local $Data::Dumper::Sortkeys = 1;
83
        $infos = Dumper( $infos->unblessed );
84
        $infos = Dumper( $infos->unblessed );
84
85
85
        if ( $infos->isa('Koha::Item') && $modulename eq 'CATALOGUING' && $actionname eq 'MODIFY' ) {
86
        if( $ref_type eq 'Koha::Item' && $modulename eq 'CATALOGUING' && $actionname eq 'MODIFY' ) {
86
            $infos = "item " . $infos;
87
            $infos = "item " . $infos;
87
        }
88
        }
88
    }
89
    }
89
- 

Return to bug 28692