Commit c7651ea8 authored by Aurel's avatar Aurel

keep empty fields so that value can be deleted

parent 52c0fa78
...@@ -152,17 +152,7 @@ ...@@ -152,17 +152,7 @@
} }
function convertJSONToGet(json) { function convertJSONToGet(json) {
var key, return json.data;
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;
} }
ERP5Storage.prototype.get = function (id) { 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