(Translated by https://www.hiragana.jp/)
⚓ T120898 When editing an old revision in the visual editor, switching to the wikitext editor without changes moves you to the newest revision
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 Estimated 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

nshahquinn-wmf raised the priority of this task from to Needs Triage.
nshahquinn-wmf updated the task description. (Show Details)
nshahquinn-wmf subscribed.
nshahquinn-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
nshahquinn-wmf updated the task description. (Show Details)
nshahquinn-wmf added a project: VisualEditor.
nshahquinn-wmf set Security to None.
nshahquinn-wmf added a subscriber: Jdforrester-WMF.
Krenair subscribed.

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

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

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

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