Commit 08ba0513 authored by Nicolas Dumazet's avatar Nicolas Dumazet

we want to reset a child object, not set it as an attribute

getattr() might be returning both children and attributes, but
we don't want to set an attribute here...


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42395 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e52de0c
......@@ -3887,7 +3887,9 @@ class Base( CopyContainer,
parent = self.getParentValue()
except AttributeError:
return
setattr(parent, self.getId(), self)
id = self.getId()
parent._delObject(id)
parent._setOb(id, self)
security.declareProtected(Permissions.DeletePortalContent,
'migratePortalType')
......
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