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:
Alex Monk 2016-09-01 02:42:16 +01:00
parent 355f16e0b9
commit d907e973fd

View file

@ -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() )