New version button always redirects to edit screen

Bug #683576 reported by Kit Blake on 2010-12-01
This bug affects 2 people
Affects Status Importance Assigned to Milestone
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
-> response=b)
-> environ, debug, request, response)
-> response = publish(request, module_name, after_list, debug=debug)
> /home/roman/.buildout/eggs/Zope2-2.12.12-py2.6-linux-i686.egg/ZPublisher/
-> 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