Commit a76679f7 authored by Vincent Bechu's avatar Vincent Bechu

erp5_officejs: change installer mapping dict

parent e9611c80
......@@ -38,10 +38,11 @@ var repair = false;
},
local_sub_storage: {
type: "mapping",
no_query_id: true,
map_all_property: true,
map_id: ["equalSubProperty", "relative_url"],
mapping_dict: {
"id": {"equal": "relative_url"},
"url_string": {"equal": "id"}
"url_string": ["equalSubId"]
},
sub_storage: {
type: "query",
......@@ -222,9 +223,12 @@ var repair = false;
var url_list = doc.text_content.split('\r\n'),
i,
take = false;
if (typeof url_list === "string") {
if (url_list.length === 1) {
url_list = doc.text_content.split('\n');
}
if (url_list.length === 1) {
url_list = doc.text_content.split('\r');
}
for (i = 0; i < url_list.length; i += 1) {
if (url_list[i].indexOf("NETWORK:") >= 0) {
take = false;
......
......@@ -222,7 +222,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>955.59498.53728.18602</string> </value>
<value> <string>956.5849.44474.42086</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -240,7 +240,7 @@
</tuple>
<state>
<tuple>
<float>1481538523.87</float>
<float>1482259856.41</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