Commit abc20a0e authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_post: don't modify follow_up anymore

keep backward compatibility with erp5_officejs_support_request_ui
parent 73091aca
......@@ -203,7 +203,7 @@
.push(function () {
var choose_file_html_element = gadget.element.querySelector('#attachment'),
file_blob = choose_file_html_element.files[0],
url = gadget.hateoas_url + "post_module/PostModule_createHTMLPostFromText",
url = gadget.hateoas_url + "post_module/PostModule_createHTMLPostForSupportRequest",
data = new FormData();
data.append("follow_up", gadget.options.jio_key);
data.append("predecessor", '');
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.26841.11048.12373</string> </value>
<value> <string>962.47417.29437.25668</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1506671693.93</float>
<float>1507898069.5</float>
<string>UTC</string>
</tuple>
</state>
......
follow_up_object, = context.getPortalObject().portal_catalog(relative_url=follow_up, limit=1)
follow_up_object.edit() # update modification date
result = context.PostModule_createHTMLPostFromText(
follow_up,
predecessor,
data,
file,
)
return result
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>follow_up, predecessor, data, file</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PostModule_createHTMLPostForSupportRequest</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -14,10 +14,6 @@ if object_list:
else:
raise LookupError("Target follow up object not found")
follow_up_object.edit(
modification_date = now
)
post.edit(
start_date=now,
follow_up_value=follow_up_object,
......
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