Commit 09cf1845 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Make the container the direct parent of a temp object. Otherwise, acquiring...

Make the container the direct parent of a temp object. Otherwise, acquiring categories from parent do not work.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31225 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0329c5fc
......@@ -491,6 +491,8 @@ class TempDocumentConstructor(DocumentConstructor):
def __call__(self, folder, id, REQUEST=None,
activate_kw=None, is_indexable=None, reindex_kw=None, **kw):
o = self.klass(id)
# Use the real container instead of the factory dispatcher.
folder = folder.Destination()
if folder.isTempObject():
folder._setObject(id, o)
o = o.__of__(folder)
......
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