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

(-)a/C4/Log.pm (-4 / +4 lines)
Lines 77-89 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
    if( ref($infos) && $infos->isa('Koha::Object') ) {
81
        $infos = $infos->get_from_storage if $infos->in_storage;
81
        $infos = $infos->get_from_storage if $infos->in_storage;
82
        local $Data::Dumper::Sortkeys = 1;
82
        local $Data::Dumper::Sortkeys = 1;
83
        $infos = Dumper( $infos->unblessed );
84
83
85
        if ( $infos->isa('Koha::Item') && $modulename eq 'CATALOGUING' && $actionname eq 'MODIFY' ) {
84
        if ( $infos->isa('Koha::Item') && $modulename eq 'CATALOGUING' && $actionname eq 'MODIFY' ) {
86
            $infos = "item " . $infos;
85
            $infos = "item " . Dumper( $infos->unblessed );
86
        } else {
87
            $infos = Dumper( $infos->unblessed );
87
        }
88
        }
88
    }
89
    }
89
90
90
- 

Return to bug 28692