diff options
author | Mitch Jackson <mitch@freeside.biz> | 2017-11-17 02:09:09 +0000 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2017-11-17 02:09:09 +0000 |
commit | 367f0149596bd63a05e6a5bfbdfe81d5c229a1fe (patch) | |
tree | 913c77ecbc2eb8d021edb8483dbf43f6af8a0a2c | |
parent | 22dd0016d0938f6acb2127d8168a4a1c5e296d3f (diff) |
Debian 9 compatibility fix for JSON and RT, RT#78665
-rw-r--r-- | rt/lib/RT/Interface/Web.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |