New version button always redirects to edit screen

Reported by Kit Blake on 2010-12-01
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Silva
Medium
Sylvain Viollon

Bug Description

When in a document (or probably other versioned content) if the document is published there's a "new version" button available in the middleground on the upper right. If you not in the editor screen, but say, the properties screen, you can make a new version. This is handy when you want to edit metadata, like the title. However when you click the "new version" button you end up in the editor screen. The behavior used to be that you would stay in the current screen. And get right to work :)

Kit Blake (kitblake) on 2010-12-01
Changed in silva:
milestone: none → 2.3
Kit Blake (kitblake) wrote :

Correction: this happened in a Silva Link(er). Which is versioned content.

Kit Blake (kitblake) on 2011-01-19
Changed in silva:
importance: Undecided → Medium
Roman Joost (romanofski) wrote :

I think I can confirm the reported problem with a normal Silva Document and actually end up with not a new version, even though the message says it has a new version created.

I crawled through the code a bit and what happens is:

1. the version is cloned, indexed
2. in the publisher a transaction abort is issued
3. Silva displays, that a new version is created even tho the transaction has been aborted.

In a debugging session I committed the transaction explicitly which created a version.

No traceback, no error - a bit obscure.

TB were it happens:
(Pdb) w
  /home/roman/.buildout/eggs/Zope2-2.12.12-py2.6-linux-i686.egg/ZServer/PubCore/ZServerPublisher.py(31)__init__()
-> response=b)
  /home/roman/.buildout/eggs/Zope2-2.12.12-py2.6-linux-i686.egg/ZPublisher/Publish.py(439)publish_module()
-> environ, debug, request, response)
  /home/roman/.buildout/eggs/Zope2-2.12.12-py2.6-linux-i686.egg/ZPublisher/Publish.py(240)publish_module_standard()
-> response = publish(request, module_name, after_list, debug=debug)
> /home/roman/.buildout/eggs/Zope2-2.12.12-py2.6-linux-i686.egg/ZPublisher/Publish.py(185)publish()
-> transactions_manager.abort()

Sylvain Viollon (thefunny) wrote :

This behavior changed with the new interface in 3.0. If you are on properties and click on this button, you stay on properties.

Changed in silva:
assignee: nobody → Sylvain Viollon (thefunny)
milestone: 2.3 → 3.0
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers