Page MenuHomePhabricator

TemplateData: renaming parameters causes error
Closed, ResolvedPublic1 Estimated Story Points


  1. Open TemplateData editor.
  2. Create a new property, giving it a name. ("Foo")
  3. Immediately click the property to edit it.
  4. Change its name, ("FooBar").
  5. Observe error being thrown after your second keystroke while renaming: Uncaught TypeError: Cannot set property 'name' of undefined mw.TemplateData.Model.setParamProperty @
mw.TemplateData.Dialog.onParamPropertyInputChange @ ext.templateDataGenerator.ui.tdDialog.js?a0610:465
oo.EventEmitter.emit @ oojs.jquery.js?d40c1:775

Event Timeline

Change 304594 had a related patch set uploaded (by DLynch):
Dialog must listen for changes to the param names

I tested and, although the patch fixes this bug, it doesn't fix the other one. I'll look into the other later.

Change 304594 merged by jenkins-bot:
Dialog must listen for changes to the param names

Jdforrester-WMF triaged this task as High priority.
Jdforrester-WMF set the point value for this task to 1.
Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.