diff --git a/modules/ext.templateDataGenerator.ui.tdDialog.js b/modules/ext.templateDataGenerator.ui.tdDialog.js index efa6fe36..48848c9f 100644 --- a/modules/ext.templateDataGenerator.ui.tdDialog.js +++ b/modules/ext.templateDataGenerator.ui.tdDialog.js @@ -650,7 +650,7 @@ mw.TemplateData.Dialog.prototype.changeParamPropertyInput = function ( paramKey, if ( value !== undefined ) { // Change the actual input if ( prop.type === 'select' ) { - propInput.selectItem( propInput.getItemFromData( value ) ); + propInput.selectItem( propInput.findItemFromData( value ) ); } else if ( prop.type === 'boolean' ) { propInput.setSelected( !!value ); } else { @@ -666,7 +666,7 @@ mw.TemplateData.Dialog.prototype.changeParamPropertyInput = function ( paramKey, } else { // Empty the input if ( prop.type === 'select' ) { - propInput.selectItem( propInput.getItemFromData( prop.default ) ); + propInput.selectItem( propInput.findItemFromData( prop.default ) ); } else if ( prop.type === 'boolean' ) { propInput.setSelected( false ); } else {