Commit 9415f904 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Check in a patch by jerome, otherwise uninstallations of actions simply fail.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15611 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2818804
......@@ -2117,6 +2117,13 @@ class ActionTemplateItem(ObjectTemplateItem):
p = context.getPortalObject()
object_path = kw.get("object_path", None)
if object_path is not None:
if '/' in object_path:
# here object_path is the path of the actions, something like
# portal_type/Person/view
ti, action_id = object_path.rsplit('/', 1)
keys = ['%s | %s' % (ti, action_id)]
else:
# compatibility ?
keys = [object_path]
else:
keys = self._archive.keys()
......
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