1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

Feature : Fix bug in update template

This commit is contained in:
Carlos Martín 2014-03-14 17:26:32 +01:00
parent 425dbd8c22
commit 22c6e729ab

@ -1859,7 +1859,7 @@ function addSectionJSON(template_json,context){
fields.each(function(){
var field=$(this);
if (!(field.parents(".vm_param").attr('disabled'))){ //if ! disabled
if (field.val().length){ //if has a length
if (field.val() != null && field.val().length){ //if has a length
template_json[field.attr('id')]=field.val();
};
};