Commit 2c7e0de5 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.
parent 3157ced3
...@@ -23,7 +23,8 @@ if notification_message is not None: ...@@ -23,7 +23,8 @@ if notification_message is not None:
mime, text_content = notification_message.convert(target_format, mime, text_content = notification_message.convert(target_format,
substitution_method_parameter_dict=substitution_method_parameter_dict) substitution_method_parameter_dict=substitution_method_parameter_dict)
context.setTextContent(text_content) context.setTextContent(text_content)
context.setAggregateList(notification_message.getProperty('aggregate_list', [])) context.setAggregateSet(
context.getAggregateList() + notification_message.getProperty('aggregate_list', []))
if not context.hasTitle(): if not context.hasTitle():
context.setTitle(notification_message.asSubjectText( 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