Commit 6503698d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

reference can be missing if an action information is not well configured.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30189 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 38033179
......@@ -2562,7 +2562,7 @@ class ActionTemplateItem(ObjectTemplateItem):
if obj is not None:
action_list = obj.listActions()
for index in range(len(action_list)):
if getattr(action_list[index], key) == value:
if getattr(action_list[index], key, None) == value:
obj.deleteActions(selections=(index,))
break
LOG('BusinessTemplate', 100,
......
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