Commit c7651ea8 authored by Aurel's avatar Aurel

keep empty fields so that value can be deleted

parent 52c0fa78
......@@ -152,17 +152,7 @@
}
function convertJSONToGet(json) {
var key,
result = json.data;
// Remove all ERP5 hateoas links / convert them into jIO ID
for (key in result) {
if (result.hasOwnProperty(key)) {
if (!result[key]) {
delete result[key];
}
}
}
return result;
return json.data;
}
ERP5Storage.prototype.get = function (id) {
......
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