Commit 6bddba30 authored by Jérome Perrin's avatar Jérome Perrin

crm: keep event aggregate when setting content from notification message

If event has an aggregate relation already, merge it with the
aggregate relation of notification message.

/reviewed-on nexedi/erp5!873
parent 7505e054
......@@ -23,7 +23,8 @@ if notification_message is not None:
mime, text_content = notification_message.convert(target_format,
substitution_method_parameter_dict=substitution_method_parameter_dict)
context.setTextContent(text_content)
context.setAggregateList(notification_message.getProperty('aggregate_list', []))
context.setAggregateSet(
context.getAggregateList() + notification_message.getProperty('aggregate_list', []))
if not context.hasTitle():
context.setTitle(notification_message.asSubjectText(
......
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