Commit f257cb8f authored by Aurel's avatar Aurel

fix missing variable at uninstall of portal types properties


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4938 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d9d70e21
...@@ -1162,6 +1162,7 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem): ...@@ -1162,6 +1162,7 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
def uninstall(self, context, **kw): def uninstall(self, context, **kw):
object_path = kw.get('object_path', None) object_path = kw.get('object_path', None)
pt = p.unrestrictedTraverse('portal_types')
if object_path is not None: if object_path is not None:
object_keys = [object_path] object_keys = [object_path]
else: else:
......
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