Commit 63bb3b39 authored by Tristan Cavelier's avatar Tristan Cavelier

Add erp5storage default view metadata formating

parent 2976f97d
...@@ -246,6 +246,10 @@ ...@@ -246,6 +246,10 @@
.then(function (response) { .then(function (response) {
var result = JSON.parse(response.target.responseText); var result = JSON.parse(response.target.responseText);
result._id = param._id; result._id = param._id;
delete result._embedded;
delete result._links;
delete result._debug;
new jIO.Metadata(result).format();
return {"data": result}; return {"data": result};
}); });
} }
......
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