Commit dcb5e958 authored by Vincent Bechu's avatar Vincent Bechu

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

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