Commit 434cbdb3 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_post: do not publish post automatically

keep backward compatibility with erp5_officejs_support_request_ui
parent 079fa2b6
...@@ -17,3 +17,8 @@ if file != "undefined": # XXX "undefined" ? should also be fixed in javascript ...@@ -17,3 +17,8 @@ if file != "undefined": # XXX "undefined" ? should also be fixed in javascript
post.setSuccessorValueList([document]) post.setSuccessorValueList([document])
# XXX depending on security model this should be changed accordingly # XXX depending on security model this should be changed accordingly
document.publish() document.publish()
post.publish()
# XXX in support request web app interface, discussable page reloads right after
# adding a post, searching for new post hoping it is already indexed.
post.immediateReindexObject()
...@@ -21,9 +21,4 @@ post = post_module.newContent( ...@@ -21,9 +21,4 @@ post = post_module.newContent(
**post_edit_kw **post_edit_kw
) )
post.publish()
# We need to reindex the object on server. So the page will get the post which
# just submmitted.
post.immediateReindexObject()
return post return post
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