Commit 2ffdb53b authored by Vincent Bechu's avatar Vincent Bechu

[erp5_officejs] Remove signature_hash and add type in query for pdf sync

parent 35baccca
...@@ -10,21 +10,22 @@ ...@@ -10,21 +10,22 @@
.push(function () { .push(function () {
return RSVP.all([ return RSVP.all([
gadget.getSetting("portal_type", "Web Page"), gadget.getSetting("portal_type", "Web Page"),
gadget.getSetting("erp5_attachment_synchro", undefined), gadget.getSetting("erp5_attachment_synchro", ""),
gadget.getSetting("default_view_reference", 'jio_view') gadget.getSetting("default_view_reference", 'jio_view')
]); ]);
}) })
.push(function (result) { .push(function (result) {
var configuration = {}, var configuration = {},
portal_type = result[0], portal_type = result[0],
attachment_synchro = result[1] !== undefined, attachment_synchro = result[1] !== "",
extended_attachment_url = result[1]; extended_attachment_url = result[1];
configuration = { configuration = {
type: "replicate", type: "replicate",
// XXX This drop the signature lists... // XXX This drop the signature lists...
query: { query: {
query: 'portal_type:"' + portal_type + '"', query: '(portal_type:"' + portal_type + '") ' +
'(type: "' + portal_type + '")',
limit: [0, 50], limit: [0, 50],
sort_on: [["modification_date", "descending"]] sort_on: [["modification_date", "descending"]]
}, },
...@@ -32,7 +33,6 @@ ...@@ -32,7 +33,6 @@
conflict_handling: 1, conflict_handling: 1,
parallel_operation_attachment_amount: 10, parallel_operation_attachment_amount: 10,
parallel_operation_amount: 10, parallel_operation_amount: 10,
signature_hash_key: 'modification_date',
check_local_attachment_modification: attachment_synchro, check_local_attachment_modification: attachment_synchro,
check_local_attachment_creation: attachment_synchro, check_local_attachment_creation: attachment_synchro,
check_remote_attachment_modification: attachment_synchro, check_remote_attachment_modification: attachment_synchro,
...@@ -89,13 +89,6 @@ ...@@ -89,13 +89,6 @@
} }
} }
}; };
// This is only for onlyoffice
if (extended_attachment_url === "/{+id}/Document_downloadForOnlyOfficeApp") {
configuration = {
type: "fix_local",
sub_storage: configuration
};
}
return gadget.setSetting('jio_storage_description', configuration); return gadget.setSetting('jio_storage_description', configuration);
}) })
.push(function () { .push(function () {
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.8948.57765.64853</string> </value> <value> <string>961.12179.45405.40294</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1501674974.42</float> <float>1501860598.21</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