Commit 7a0fbfff authored by Romain Courteaud's avatar Romain Courteaud

Thanks to Aurelien.

Bug fix: compare the existing meta types to the meta type of the document class
(and not the class id, which generate a conflict with Folder).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4306 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c32423b5
......@@ -651,7 +651,7 @@ def importLocalDocument(class_id, document_path = None):
# Update Meta Types
new_meta_types = []
for meta_type in Products.meta_types:
if meta_type['name'] != class_id:
if meta_type['name'] != document_class.meta_type:
new_meta_types.append(meta_type)
else:
# Update new_meta_types
......
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