fix params showing as undefined

This commit is contained in:
John Tompkins
2016-09-04 15:28:23 -04:00
parent dab8c4a0e3
commit 1ce3dada00
2 changed files with 6 additions and 3 deletions
+6 -2
View File
@@ -43,7 +43,11 @@ Handlebars.registerHelper('renderTextParam', function(param) {
idAtt = ' id=\'' + valueId + '\'';
}
defaultValue = sanitizeHtml(defaultValue);
if (defaultValue) {
defaultValue = sanitizeHtml(defaultValue);
} else {
defaultValue = '';
}
if(isArray) {
result = '<textarea class=\'body-textarea' + (param.required ? ' required' : '') + '\' name=\'' + name + '\'' + idAtt + dataVendorExtensions;
@@ -89,4 +93,4 @@ Handlebars.registerHelper('escape', function (value) {
var text = Handlebars.Utils.escapeExpression(value);
return new Handlebars.SafeString(text);
});
});