Commit ecb09a0d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

preserve notification_message's category and language into a generated event document.

parent 4e7217eb
......@@ -198,9 +198,14 @@ class PasswordTool(BaseTool):
else:
message = notification_message.asText(substitution_method_parameter_dict=message_dict)
event_keyword_argument_dict={
'resource':notification_message.getSpecialise(),
'language':notification_message.getLanguage(),
}
self.getPortalObject().portal_notifications.sendMessage(sender=sender, recipient=[user,],
subject=subject, message=message,
store_as_event=store_as_event)
store_as_event=store_as_event,
event_keyword_argument_dict=event_keyword_argument_dict)
if REQUEST is not None:
msg = translateString("An email has been sent to you.")
parameter = urlencode(dict(portal_status_message=msg))
......
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