mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
DesktopWikitextArticleTarget#switchToVisualEditor: Use correct revision ID property
So we ensure we send the actual revision ID, not potentially undefined, to the method. If we send undefined, it'll give us an etag for revision number 0... And that will cause issues when we later attempt (in a future editor switch) to pass an etag for revision 0 along with the correct revision. Bug: T143920 Change-Id: I0c27956abdd26ae4f5f1b91010a5eab8ee0354ab
This commit is contained in:
parent
355f16e0b9
commit
d907e973fd
|
@ -85,7 +85,7 @@ ve.init.mw.DesktopWikitextArticleTarget.prototype.switchToVisualEditor = functio
|
|||
|
||||
dataPromise = mw.libs.ve.targetLoader.requestParsoidData(
|
||||
this.pageName,
|
||||
this.requestedRevId,
|
||||
this.revid,
|
||||
this.constructor.name,
|
||||
this.edited,
|
||||
this.getWikitextFromDocument( this.getSurface().getDom() )
|
||||
|
|
Loading…
Reference in a new issue