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:
Thiemo Kreuz 2021-06-14 18:12:05 +02:00 committed by Thiemo Kreuz (WMDE)
parent 950a5300dc
commit 50fbddb459

View file

@ -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 */