Commit 998eab4f authored by Yoshinori Okuji's avatar Yoshinori Okuji

Prevent an infinite recursive loop.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2922 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 22efd172
......@@ -143,7 +143,7 @@ def initializePortalTypeDynamicProperties(self, klass, ptype, recursive=0):
parent_object = self.aq_parent
parent_klass = parent_object.__class__
parent_type = parent_object.portal_type
if getattr(parent_klass, 'isRADContent', 0):
if getattr(parent_klass, 'isRADContent', 0) and (ptype != parent_type or klass != parent_klass):
initializePortalTypeDynamicProperties(self, parent_klass, parent_type, recursive=1)
if not recursive:
# Initiatise portal_type properties (XXX)
......
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