Always use trackingName for tracking

Change-Id: Ifc7d3275277628b310f5c017c43a76f5a7c25ea7
This commit is contained in:
Ed Sanders 2017-10-02 22:20:53 +01:00
parent 09cde07c45
commit ff896e0be6

View file

@ -1157,7 +1157,7 @@ ve.init.mw.ArticleTarget.prototype.load = function ( dataPromise ) {
this.loading = dataPromise || mw.libs.ve.targetLoader.requestPageData( this.getDefaultMode(), this.pageName, { this.loading = dataPromise || mw.libs.ve.targetLoader.requestPageData( this.getDefaultMode(), this.pageName, {
section: this.section, section: this.section,
oldId: this.requestedRevId, oldId: this.requestedRevId,
targetName: this.constructor.static.name targetName: this.constructor.static.trackingName
} ); } );
this.loading this.loading
.done( this.loadSuccess.bind( this ) ) .done( this.loadSuccess.bind( this ) )
@ -2189,7 +2189,7 @@ ve.init.mw.ArticleTarget.prototype.switchToWikitextEditor = function ( discardCh
dataPromise = mw.libs.ve.targetLoader.requestPageData( 'source', this.pageName, { dataPromise = mw.libs.ve.targetLoader.requestPageData( 'source', this.pageName, {
section: this.section, section: this.section,
oldId: this.requestedRevId, oldId: this.requestedRevId,
targetName: this.constructor.static.name targetName: this.constructor.static.trackingName
} ).then( } ).then(
function ( response ) { return response; }, function ( response ) { return response; },
function () { function () {
@ -2259,7 +2259,7 @@ ve.init.mw.ArticleTarget.prototype.switchToVisualEditor = function () {
} else { } else {
dataPromise = mw.libs.ve.targetLoader.requestParsoidData( this.pageName, { dataPromise = mw.libs.ve.targetLoader.requestParsoidData( this.pageName, {
oldId: this.revid, oldId: this.revid,
targetName: this.constructor.static.name, targetName: this.constructor.static.trackingName,
modified: this.edited, modified: this.edited,
wikitext: this.getDocToSave() wikitext: this.getDocToSave()
} ); } );