Commit 1f291535 authored by Nicolas Delaby's avatar Nicolas Delaby

avoid appending the same path twice

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33869 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9b756b54
......@@ -1125,6 +1125,8 @@ class ObjectTemplateItem(BaseTemplateItem):
for from_path in from_path_list:
container = portal.unrestrictedTraverse(from_path, None)
if container is not None:
if from_path in recursive_path_list:
continue
recursive_path_list.append(from_path)
# Check that container support iteration of sub_content_id
if getattr(aq_base(container), 'objectIds', None) is not None:
......
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