Commit e56d7941 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5storage taskman get shortcut done

parent 1ecf0899
......@@ -191,16 +191,10 @@
ERP5Storage.onView.taskmanager = {};
ERP5Storage.onView.taskmanager.get = function (param, options) {
return getHatoas.call(this, param, options).
then(function (response) {
var result = JSON.parse(response.target.responseText);
result._id = param._id;
delete result._embedded;
delete result._links;
delete result._debug;
result = toJIOMetadata(result);
new jIO.Metadata(result).format();
return {"data": result};
return ERP5Storage.onView["default"].get.call(this, param, options).
then(function (answer) {
answer.data = toJIOMetadata(answer.data);
return answer;
});
};
......
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