From: Mitch Jackson Date: Fri, 17 Nov 2017 02:09:09 +0000 (+0000) Subject: Debian 9 compatibility fix for JSON and RT, RT#78665 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=367f0149596bd63a05e6a5bfbdfe81d5c229a1fe;ds=sidebyside Debian 9 compatibility fix for JSON and RT, RT#78665 --- 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; }