better serialization on debugging data, RT#7514
authorivan <ivan>
Wed, 4 Aug 2010 01:23:05 +0000 (01:23 +0000)
committerivan <ivan>
Wed, 4 Aug 2010 01:23:05 +0000 (01:23 +0000)
FS/FS/part_export/communigate_pro.pm

index a3847bf..3d7d76c 100644 (file)
@@ -730,17 +730,7 @@ sub export_getsettings_svc_domain {
   foreach my $key ( grep ref($effective_settings->{$_}),
                     keys %$effective_settings )
   {
-    my $value = $effective_settings->{$key};
-    if ( ref($value) eq 'ARRAY' ) {
-      $effective_settings->{$key} =
-        join(' ', map { ref($_) ? '['.join(', ', @$_).']' : $_ } @$value );
-    } elsif ( ref($value) eq 'HASH' ) {
-      $effective_settings->{$key} =
-        join(', ', map { "$_:".$value->{$_} } keys %$value );
-    } else {
-      #XXX
-      warn "serializing ". ref($value). " for table display not yet handled";
-    }
+    $effective_settings->{$key} = _pretty( $effective_settings->{$key} );
   }
 
   %{$settingsref} = %$effective_settings;