mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
Update wgRevisionId when we change wgCurRevisionId
Bug: 56532 Change-Id: Ibb5a92d66a7a60ef516d3ef385b4473919a6ac63
This commit is contained in:
parent
1236387abd
commit
167a2f341e
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue