Commit f16189af authored by Julien Cristau's avatar Julien Cristau
Browse files

[entities] return the entity itself from notification_references if the view...

[entities] return the entity itself from notification_references if the view uses a random message-id

Useful for entity update notifications to reference the entity creation message.
parent b2f7f03f10b3
......@@ -78,6 +78,8 @@ class INotifiableAdapter(view.EntityAdapter):
itree = self.entity.cw_adapt_to('ITree')
if itree is not None:
return itree.path()[:-1]
if view.msgid_timestamp:
return (self.entity.eid,)
return ()
......
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