Bug 28692: (QA follow-up) Sort hash keys of unblessed
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 12 Nov 2021 10:29:04 +0000 (10:29 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 16 Nov 2021 13:00:20 +0000 (14:00 +0100)
Trivial add. Reads much better. And might help future diffs.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Log.pm

index 4fc7878..3f1255b 100644 (file)
--- a/C4/Log.pm
+++ b/C4/Log.pm
@@ -79,6 +79,7 @@ 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' ) {