Commit 8e9322c0 authored by 's avatar

Merged fix to use _setId in createInObjectManager from 2.2 branch

parent 3fb994c2
......@@ -449,11 +449,7 @@ class ZClass(OFS.SimpleItem.SimpleItem):
the instance will be returned.
"""
i=mapply(self._zclass_, (), REQUEST)
if not hasattr(i, 'id') or not i.id: i.id=id
# Temporary band-aid:
if getattr(i, '__name__', None) == '<string>':
i.__name__ = id
i._setId(id)
folder=durl=None
if hasattr(self, 'Destination'):
d=self.Destination
......
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