Commit 46fbe062 authored by Vincent Pelletier's avatar Vincent Pelletier

restrictedTraverse is overkill to fetch a direct subobject.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18538 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c9ca89c
......@@ -145,7 +145,7 @@ class CopyContainer:
and linked to objects inside the renamed object
"""
ob=self.restrictedTraverse(id)
ob = self._getOb(id)
# Make sure there is no activities pending on that object
try:
portal_activities = getToolByName(self, 'portal_activities')
......
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