mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Fix bad parameter ID "…/undefined" on placeholders
This currently conflicts with parameters that are actually called "undefined". Bug: T285002 Change-Id: I8078f51971c7e2a335dae497c3fc3c827684640c
This commit is contained in:
parent
950a5300dc
commit
50fbddb459
|
@ -28,7 +28,7 @@ ve.dm.MWParameterModel = function VeDmMWParameterModel( template, name, value )
|
|||
this.originalName = name;
|
||||
this.name = typeof name === 'string' ? name.trim() : '';
|
||||
this.value = value || '';
|
||||
this.id = this.template.getId() + '/' + name;
|
||||
this.id = this.template.getId() + '/' + this.name;
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
Loading…
Reference in a new issue