From 167a2f341e70a27f94f0242780de5cb38a824820 Mon Sep 17 00:00:00 2001 From: Krenair Date: Sat, 19 Apr 2014 17:58:12 +0100 Subject: [PATCH] Update wgRevisionId when we change wgCurRevisionId Bug: 56532 Change-Id: Ibb5a92d66a7a60ef516d3ef385b4473919a6ac63 --- modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js index 2510d2cdb3..24368a1b8e 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js @@ -417,7 +417,10 @@ ve.init.mw.ViewPageTarget.prototype.onSave = function ( html, categoriesHtml, ne this.restoring = false; if ( newid !== undefined ) { - mw.config.set( 'wgCurRevisionId', newid ); + mw.config.set( { + 'wgCurRevisionId': newid, + 'wgRevisionId': newid + } ); this.revid = newid; } this.saveDialog.close();