1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #2683: Template wizard breaks attributes with '&' on update

This commit is contained in:
Daniel Molina 2014-02-05 17:42:43 +01:00
parent 142b65a38d
commit 8ba6d3281d

View File

@ -4078,7 +4078,7 @@ function initialize_create_template_dialog(dialog) {
$('#custom_tags tr', $('li#rawTab')).each(function(){
if ($('#KEY', $(this)).val()) {
vm_json[$('#KEY', $(this)).val()] = $('#VALUE', $(this)).val()
vm_json[$('#KEY', $(this)).val()] = escapeDoubleQuotes($('#VALUE', $(this)).val());
}
});
@ -4214,7 +4214,7 @@ function fillTemplatePopUp(template, dialog){
fields.each(function(){
var field = $(this);
if (template_json[field.attr('id')]){ //if has a length
field.val(template_json[field.attr('id')]);
field.val(escapeDoubleQuotes($('<div/>').html(template_json[field.attr('id')]).text()));
field.change();
delete template_json[field.attr('id')]