Merge "Fix visual diff in 2017 WTE"

This commit is contained in:
jenkins-bot 2019-05-12 11:55:31 +00:00 committed by Gerrit Code Review
commit 4197941786

View file

@ -1067,7 +1067,7 @@ ve.init.mw.ArticleTarget.prototype.getVisualDiffGeneratorPromise = function () {
pst: true
} ).then( function ( response ) {
// Use anonymous function to avoid passing through API promise argument
return mw.libs.ve.diffLoader.getModelFromResponse( response );
return mw.libs.ve.diffLoader.getModelFromResponse( response, target.section === null ? null : undefined );
} );
return mw.libs.ve.diffLoader.getVisualDiffGeneratorPromise( target.originalDmDocPromise, newRevPromise );