Commit ab78f474 authored by Yusei Tahara's avatar Yusei Tahara

action['category'] may be None.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45083 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 35600b8b
......@@ -568,7 +568,8 @@ class ERP5TypeInformation(XMLObject,
ec = createExpressionContext(ob)
other_action = None
for action in self.getActionList():
if action['id'] == view or action['category'].endswith('_' + view):
if action['id'] == view or (action['category'] is not None and
action['category'].endswith('_' + view)):
if action.test(ec):
break
elif other_action is None:
......
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