versioning bug fix
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2141 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
43d5639b55
commit
5e70cb55ce
1 changed files with 2 additions and 1 deletions
|
@ -291,7 +291,8 @@ class EditObject(FormController):
|
|||
if obj != target:
|
||||
# make sure new version is used by the view
|
||||
self.view.virtualTargetObject = obj
|
||||
self.request.annotations['loops.view']['target'] = obj
|
||||
viewAnnotations = self.request.annotations.setdefault('loops.view', {})
|
||||
viewAnnotations['target'] = obj
|
||||
self.object = obj
|
||||
formState = self.updateFields()
|
||||
# TODO: error handling
|
||||
|
|
Loading…
Add table
Reference in a new issue