Commit 7dd0b173 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_interface_post: do not aggregate post if event is temporary

parent b49db358
...@@ -11,6 +11,7 @@ message_post = post_message_post_module.newContent( ...@@ -11,6 +11,7 @@ message_post = post_message_post_module.newContent(
message_post.prepareExport() message_post.prepareExport()
event_aggregate_list = context.getAggregateList() if not context.isTempObject():
event_aggregate_list.append(message_post.getRelativeUrl()) event_aggregate_list = context.getAggregateList()
context.setAggregateList(event_aggregate_list) event_aggregate_list.append(message_post.getRelativeUrl())
context.setAggregateList(event_aggregate_list)
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