Commit a5fcbc4f authored by Jérome Perrin's avatar Jérome Perrin

officejs_support_request_ui: don't edit the support request when message are posted

Some users might be able to post messages without being able to modify
the support request
parent 4c66544f
...@@ -3,11 +3,6 @@ portal = context.getPortalObject() ...@@ -3,11 +3,6 @@ portal = context.getPortalObject()
follow_up_value = portal.restrictedTraverse(follow_up) follow_up_value = portal.restrictedTraverse(follow_up)
assert follow_up_value.getPortalType() == "Support Request" assert follow_up_value.getPortalType() == "Support Request"
# update modification date
portal.portal_workflow.doActionFor(
follow_up_value,
'edit_action',
comment=translateString('New message posted.'))
post = context.PostModule_createHTMLPostFromText( post = context.PostModule_createHTMLPostFromText(
follow_up=follow_up, follow_up=follow_up,
......
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