Commit f513e0ff authored by Jean-Paul Smets's avatar Jean-Paul Smets

context linked to parent rather than self


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1366 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b4f4a616
...@@ -1275,7 +1275,7 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana ...@@ -1275,7 +1275,7 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana
for k in ('isIndexable', 'reindexObject', 'recursiveReindexObject', 'activate', 'setUid', ): for k in ('isIndexable', 'reindexObject', 'recursiveReindexObject', 'activate', 'setUid', ):
setattr(context, k, getattr(temp_object,k)) setattr(context, k, getattr(temp_object,k))
# Return result # Return result
return context.__of__(self) return context.__of__(self.aq_parent)
else: else:
return context.asContext(REQUEST=REQUEST, **kw) return context.asContext(REQUEST=REQUEST, **kw)
......
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