Commit 09218c9c authored by Yoshinori Okuji's avatar Yoshinori Okuji

If a message does not have object_list, assume that the value is None.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3878 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 025e919d
......@@ -92,7 +92,7 @@ class Message:
return activity_tool.unrestrictedTraverse(self.object_path)
def getObjectList(self, activity_tool):
if self.object_list is None:
if getattr(self, 'object_list', None) is None:
try:
expand_method_id = self.activity_kw['expand_method_id']
obj = self.getObject(activity_tool)
......
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