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,7 +2117,14 @@ class ActionTemplateItem(ObjectTemplateItem): ...@@ -2117,7 +2117,14 @@ class ActionTemplateItem(ObjectTemplateItem):
p = context.getPortalObject() p = context.getPortalObject()
object_path = kw.get("object_path", None) object_path = kw.get("object_path", None)
if object_path is not None: if object_path is not None:
keys = [object_path] 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: else:
keys = self._archive.keys() keys = self._archive.keys()
for id in keys: for id in 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