Commit 986acb42 authored by Jérome Perrin's avatar Jérome Perrin

inconditionnaly pass parent_uid in searchFolder / countFolder


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34483 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e1b3d1e6
......@@ -270,8 +270,7 @@ class FolderMixIn(ExtensionClass.Base):
Search the content of a folder by calling
the portal_catalog.
"""
if not kw.has_key('parent_uid'): #WHY ????
kw['parent_uid'] = self.getUid()
kw['parent_uid'] = self.getUid()
# Make sure that if we use parent base category
# We do not have conflicting parent uid values
......@@ -303,8 +302,7 @@ class FolderMixIn(ExtensionClass.Base):
Search the content of a folder by calling
the portal_catalog.
"""
if not kw.has_key('parent_uid'): #WHY ????
kw['parent_uid'] = self.getUid()
kw['parent_uid'] = self.getUid()
# Make sure that if we use parent base category
# We do not have conflicting parent uid values
......
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