X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Flib%2FRT%2FInterface%2FWeb.pm;fp=rt%2Flib%2FRT%2FInterface%2FWeb.pm;h=3ea489709067519f2ddf029221db97749ea48362;hp=af41e5ba6492cde95b4b7d189fcabb41750aeb2e;hb=367f0149596bd63a05e6a5bfbdfe81d5c229a1fe;hpb=22dd0016d0938f6acb2127d8168a4a1c5e296d3f 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; }