versioning fix: issue ObjectCreatedEvent upon creation of a new version
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1680 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
94fafdfb32
commit
a66cd09817
1 changed files with 3 additions and 1 deletions
|
@ -329,7 +329,9 @@ class EditObject(FormController):
|
|||
if form.get('version.create'):
|
||||
versionable = IVersionable(obj)
|
||||
level = int(form.get('version.level', 1))
|
||||
return versionable.createVersion(level)
|
||||
version = versionable.createVersion(level)
|
||||
notify(ObjectCreatedEvent(version))
|
||||
return version
|
||||
return obj
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue