Commit 460909d3 authored by Aurel's avatar Aurel

forgot to propagate container parameter in previous commit & remove - in ID

parent 2fcda5b2
...@@ -223,9 +223,10 @@ class FolderMixIn(ExtensionClass.Base): ...@@ -223,9 +223,10 @@ class FolderMixIn(ExtensionClass.Base):
We also append random id We also append random id
""" """
activity_tool = self.getPortalObject().portal_activities activity_tool = self.getPortalObject().portal_activities
new_id = "%s-%s" %(activity_tool.getCurrentNode(), self._generateRandomId()) new_id = "%s-%s" %(activity_tool.getCurrentNode().replace("-", "_"),
self._generateRandomId())
try: try:
checkValidId(new_id) checkValidId(self, new_id)
except BadRequest: except BadRequest:
return self._generateNextId() return self._generateNextId()
return new_id return new_id
......
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