Commit 3e82d023 authored by Roque's avatar Roque

erp5_officejs: minor fix in appcachestorage sync

parent 70c581cb
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
function processHateoasDict(raw_dict) { function processHateoasDict(raw_dict) {
var raw_fields, type, parent, field_key, field_id, return_dict = {}; var raw_fields, type, parent, field_key, field_id, return_dict = {};
return_dict.raw_dict = raw_dict;
try { try {
/*jslint nomen: true*/ /*jslint nomen: true*/
raw_fields = raw_dict._embedded._view; raw_fields = raw_dict._embedded._view;
...@@ -137,7 +138,7 @@ ...@@ -137,7 +138,7 @@
} }
}, },
sync_flag = "appcache-stored", sync_flag = "appcache-stored",
configuration_ids_dict = {}; configuration_ids_list = [];
if (jio_options === undefined) { if (jio_options === undefined) {
return; return;
} }
...@@ -177,7 +178,7 @@ ...@@ -177,7 +178,7 @@
} else { } else {
promise_list.push(appcache_storage.getAttachment(origin_url, id, {"format": "json"})); promise_list.push(appcache_storage.getAttachment(origin_url, id, {"format": "json"}));
} }
configuration_ids_dict[String(i)] = id; configuration_ids_list[i] = id;
i += 1; i += 1;
} }
} }
...@@ -186,7 +187,7 @@ ...@@ -186,7 +187,7 @@
.push(function (content_list) { .push(function (content_list) {
var i, id, parser, urlParams, content, promise_list = []; var i, id, parser, urlParams, content, promise_list = [];
for (i = 0; i < content_list.length; i += 1) { for (i = 0; i < content_list.length; i += 1) {
id = configuration_ids_dict[String(i)]; id = configuration_ids_list[i];
parser = document.createElement('a'); parser = document.createElement('a');
parser.href = id; parser.href = id;
urlParams = new URLSearchParams(parser.search); urlParams = new URLSearchParams(parser.search);
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>974.41513.27300.13568</string> </value> <value> <string>974.52922.19559.31982</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1553701267.05</float> <float>1554386123.45</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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