Commit 6e34acab authored by Romain Courteaud's avatar Romain Courteaud

Only added a comment.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4390 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ddf93870
......@@ -74,7 +74,10 @@ class FolderMixIn(ExtensionClass.Base):
new_id = str(container.generateNewId(id_group = id_group, default=default, method=method))
else:
new_id = str(id)
if portal_type is None: portal_type = container.allowedContentTypes()[0].id
if portal_type is None:
# XXX This feature is very confusing
# And made the code more difficult to update
portal_type = container.allowedContentTypes()[0].id
self.portal_types.constructContent(type_name=portal_type,
container=container,
id=new_id,
......
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