Commit d929c4a7 authored by Yusei Tahara's avatar Yusei Tahara

Fix a name error. portal_type was unbound.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39040 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 425bd0f7
......@@ -2781,7 +2781,8 @@ class Base( CopyContainer,
"""
if context is None:
pt = self._getTypesTool()
type_info = pt.getTypeInfo(self.getPortalType())
portal_type = self.getPortalType()
type_info = pt.getTypeInfo(portal_type)
if type_info is None:
raise ValueError('No such content type: %s' % portal_type)
......
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