From fa90fd6a5a1d534cf214b2756e3a22d700b7bc31 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 15 Nov 2021 12:05:59 +0100 Subject: [PATCH] Bug 28692: Correctly prefix "item " for Koha::Item MODIFY logs or the isa won't work --- C4/Log.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/C4/Log.pm b/C4/Log.pm index 3f1255b25e3..e680b5a0621 100644 --- a/C4/Log.pm +++ b/C4/Log.pm @@ -80,10 +80,11 @@ sub logaction { if ( ref($infos) && ref($infos) !~ /HASH|ARRAY/ && $infos->isa('Koha::Object') ) { $infos = $infos->get_from_storage if $infos->in_storage; local $Data::Dumper::Sortkeys = 1; - $infos = Dumper( $infos->unblessed ); if ( $infos->isa('Koha::Item') && $modulename eq 'CATALOGUING' && $actionname eq 'MODIFY' ) { - $infos = "item " . $infos; + $infos = "item " . Dumper( $infos->unblessed ); + } else { + $infos = Dumper( $infos->unblessed ); } } -- 2.25.1