Commit f8680dbc authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

code optimisation suggested by leonardo.

parent 3c3ffc9b
......@@ -308,9 +308,7 @@ class Message(BaseMessage):
context=activity_tool)
else:
# Store site info
portal = getattr(obj, 'getPortalObject', lambda:None)()
if portal is not None:
setSite(portal)
setSite(activity_tool.getParentValue())
if activity_tool.activity_timing_log:
result = activity_timing_method(method, self.args, self.kw)
else:
......
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