mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-01 03:26:28 +00:00
Merge "Use MediaWiki's new section edit summary if the user didn't modify it"
This commit is contained in:
commit
118b958f8b
|
@ -205,6 +205,13 @@ NewTopicController.prototype.getApiQuery = function ( comment, pageName, checkbo
|
|||
dttags: tags.join( ',' )
|
||||
} );
|
||||
|
||||
// Allow MediaWiki to generate the summary if it wasn't modified by the user. This avoids
|
||||
// inconsistencies in how wiki markup is stripped from section titles when they're used in
|
||||
// automatic summaries. (T275178)
|
||||
if ( data.summary === this.generateSummary( this.sectionTitle.getValue() ) ) {
|
||||
delete data.summary;
|
||||
}
|
||||
|
||||
return data;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue