Page MenuHomePhabricator

When editing an old revision in the visual editor, switching to the wikitext editor without changes moves you to the newest revision
Closed, ResolvedPublic1 Story Points

Description

w:en:User:Neil P. Quinn-WMF/T120898 has two revisions. The first contains the text "This is an old revision" while the second contains the text "This is a new revision".

Open the old revision in VE. As expected, you see the text "This is an old revision."

Now, click on the brackets icon to switch to the wikitext editor. If you've made any changes, choose to the discard them. Unexpectedly, the editor has now jumped to the newest revision of the page, so it contains the text "This is a new revision".

This doesn't happen when you've made edits in the visual editor and keep them when switching to wikitext. It also doesn't happen in the wikitext -> visual editor direction.

Event Timeline

Neil_P._Quinn_WMF updated the task description. (Show Details)
Neil_P._Quinn_WMF raised the priority of this task from to Needs Triage.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptDec 9 2015, 1:21 AM
Neil_P._Quinn_WMF renamed this task from When editing an old revision in the visual editor, switching to the wikitext editor moves you to the newest revision to When editing an old revision in the visual editor, switching to the wikitext editor without changes moves you to the newest revision.Dec 9 2015, 1:29 AM
Neil_P._Quinn_WMF updated the task description. (Show Details)
Neil_P._Quinn_WMF set Security to None.
Neil_P._Quinn_WMF added a subscriber: Jdforrester-WMF.
Krenair added a subscriber: Krenair.

Please add VisualEditor-MediaWiki to these bugs - I only happened to see this one because you initially didn't add any projects.

Jdforrester-WMF triaged this task as Normal priority.Dec 15 2015, 8:24 PM
Jdforrester-WMF edited a custom field.
Jdforrester-WMF moved this task from To Triage to TR1: Releases on the VisualEditor board.

Change 259955 had a related patch set uploaded (by Alex Monk):
Preserve oldid when switching from VE into WTE

https://gerrit.wikimedia.org/r/259955

Krenair claimed this task.Dec 18 2015, 12:47 AM

Change 259955 merged by jenkins-bot:
Preserve oldid when switching from VE into WTE

https://gerrit.wikimedia.org/r/259955