mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Merge "Fix renaming of parameters to another existing name"
This commit is contained in:
commit
caef0269ac
|
@ -709,7 +709,7 @@ mw.TemplateData.Model.prototype.setParamProperty = function ( paramKey, prop, va
|
|||
// See if the parameters already has something with this new key
|
||||
if ( this.params[ value ] && !this.params[ value ].deleted ) {
|
||||
// Change the key to be something else
|
||||
value += this.getNewValidParameterKey( value );
|
||||
value = this.getNewValidParameterKey( value );
|
||||
}
|
||||
// Copy param details to new name
|
||||
this.params[ value ] = this.params[ oldValue ];
|
||||
|
|
Loading…
Reference in a new issue