Commit 4d592eb5 authored by Jérome Perrin's avatar Jérome Perrin

fix uninstallation of BT with custom actions


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3423 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1ed303db
......@@ -624,7 +624,7 @@ class ActionTemplateItem(BaseTemplateItem):
object = p.unrestrictedTraverse(relative_url)
action_list = object.listActions()
for index in range(len(action_list)):
if getattr(ai, key) == value:
if getattr(action_list[index], key) == value:
object.deleteActions(selections=(index,))
break
BaseTemplateItem.uninstall(self, context, **kw)
......
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