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
......@@ -1161,7 +1161,8 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
setattr(portal_type, self.class_property, list(property_list))
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:
object_keys = [object_path]
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