From 367f0149596bd63a05e6a5bfbdfe81d5c229a1fe Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Fri, 17 Nov 2017 02:09:09 +0000 Subject: [PATCH] Debian 9 compatibility fix for JSON and RT, RT#78665 --- rt/lib/RT/Interface/Web.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rt/lib/RT/Interface/Web.pm b/rt/lib/RT/Interface/Web.pm index af41e5ba6..3ea489709 100644 --- a/rt/lib/RT/Interface/Web.pm +++ b/rt/lib/RT/Interface/Web.pm @@ -194,7 +194,7 @@ SCALAR may be a simple value or a reference. =cut sub EncodeJSON { - my $s = JSON::to_json(shift, { allow_nonref => 1 }); + my $s = JSON::to_json(shift, { allow_blessed => 1, allow_nonref => 1 }); $s =~ s{/}{\\/}g; return $s; } -- 2.11.0