https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25159 --- Comment #65 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Coming from 38531. - my $diff = ( $original && ref $updated eq 'HASH' ) ? encode_json( diff( $original, $updated, noU => 1 ) ) : undef; + my $diff = undef; + $diff = encode_json( diff( $original->unblessed, $updated, noU => 1 ) ) + if blessed($original) && $original->isa('Koha::Object'); + $diff //= encode_json( diff( $original, $updated, noU => 1 ) ) + if $original && ref $updated eq 'HASH'; Would be nice to add some POD for this change? Bit obscure now imo. Also note that this earlier line does not check $original: if ( $infos->isa('Koha::Item') && $modulename eq 'CATALOGUING' && $actionname eq 'MODIFY' ) { $infos = "item " . Dumper( $original->unblessed ); Feels suboptimal? -- You are receiving this mail because: You are watching all bug changes.