Commit f12db5e5 authored by Roque's avatar Roque

erp5_officejs: don't save appcachestorage non configuration elements during sync

parent 19629359
......@@ -191,9 +191,10 @@
parser.href = id;
urlParams = new URLSearchParams(parser.search);
id = urlParams.get("relative_url");
if (id === null) { id = configuration_ids_dict[String(i)]; }
content = processHateoasDict(content_list[i]);
promise_list.push(appcache_storage.put(id, content));
if (id !== null) { // ignore non configuration elements
content = processHateoasDict(content_list[i]);
promise_list.push(appcache_storage.put(id, content));
}
}
return RSVP.all(promise_list);
})
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>974.41438.31897.60791</string> </value>
<value> <string>974.41513.27300.13568</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1553699373.55</float>
<float>1553701267.05</float>
<string>UTC</string>
</tuple>
</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