Commit dab91bee authored by Alexandre Boeglin's avatar Alexandre Boeglin

When an object inherits from Folder after it was instanciated, it lacks its

BTreeFolder properties, which have to be recreated.
Doing this in objectValues allows to fix them by calling ERP5Site_reindexAll.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10226 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9173c3bf
......@@ -769,6 +769,10 @@ be a problem)."""
"""
if meta_type is not None:
spec = meta_type
# when an object inherits from Folder after it was instanciated, it lacks
# its BTreeFolder properties.
if getattr(self, '_tree', None) is None:
self._initBTrees()
object_list = CMFBTreeFolder.objectValues(self, spec=spec)
if portal_type is not None:
if type(portal_type) == type(''):
......
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