diff --git a/src/sunstone/public/js/plugins/templates-tab.js b/src/sunstone/public/js/plugins/templates-tab.js index 75951232d5..9176d70545 100644 --- a/src/sunstone/public/js/plugins/templates-tab.js +++ b/src/sunstone/public/js/plugins/templates-tab.js @@ -4691,7 +4691,7 @@ function fillTemplatePopUp(request, response){ $("#ssh_context", context_section).attr('checked','checked'); if (!publickey_regexp.test(value)) { - $("input#ssh_public_key").val(value); + $("#ssh_public_key", context_section).val(value); } } else if (token_regexp.test(key)) {