Commit 3b957b16 authored by Roque's avatar Roque

erp5_officejs: posts of a same 'thread' share source reference

parent 753d3dfa
...@@ -94,6 +94,8 @@ ...@@ -94,6 +94,8 @@
} }
doc = { doc = {
title: title, title: title,
//thread parent: same as base post
source_reference: document.source_reference,
portal_type: document.portal_type, portal_type: document.portal_type,
parent_relative_url: document.parent_relative_url parent_relative_url: document.parent_relative_url
}; };
...@@ -163,6 +165,8 @@ ...@@ -163,6 +165,8 @@
}) })
.allowPublicAcquisition('submitContent', function (options) { .allowPublicAcquisition('submitContent', function (options) {
// NOTE: if we want to create the reply post when saving the reply
// (instead of when accessing reply action option), this is the place
var gadget = this, var gadget = this,
jio_key = options[0], jio_key = options[0],
//target_url = options[1], //target_url = options[1],
......
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>974.51886.25651.1723</string> </value> <value> <string>974.53016.56105.24149</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1554323825.38</float> <float>1554391859.64</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
.push(function (result) { .push(function (result) {
var doc = { var doc = {
title: "Untitled Document", title: "Untitled Document",
//TODO: this must be the parent thread reference (or 'base' post ref?)
source_reference: "some-fake-thread-id",
portal_type: result[0], portal_type: result[0],
parent_relative_url: result[1] parent_relative_url: result[1]
}; };
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>974.24136.6672.34252</string> </value> <value> <string>974.53018.33015.55893</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1552660461.13</float> <float>1554392914.44</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