Commit c893bcf5 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 486074: Allow the JSON-RPC interface to properly serialize objects

to JSON, so that the Bug.get "internals" return item works. r=dkl, a=mkanat
parent efa7ae77
......@@ -38,6 +38,11 @@ use constant UPDATE_VALIDATORS => {};
use constant NUMERIC_COLUMNS => ();
use constant DATE_COLUMNS => ();
# This allows the JSON-RPC interface to return Bugzilla::Object instances
# as though they were hashes. In the future, this may be modified to return
# less information.
sub TO_JSON { return { %{ $_[0] } }; }
###############################
#### Initialization ####
###############################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment