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

B #5172: Fix user inputs in flow instantiate form (#407)

(cherry picked from commit 8b9cf9d611ea9fbcb1f0dfd6613001e286476dd5)
This commit is contained in:
Sergio Betanzos 2020-11-10 14:17:15 +01:00 committed by Tino Vazquez
parent 5bc0eb5d47
commit 1d5bf0e056
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -263,6 +263,13 @@ define(function(require) {
var tmp_json = {};
$.extend( tmp_json, WizardFields.retrieve($("#"+div_id, context)) );
$.each(tmp_json, function(key, value){
if (Array.isArray(value)){
delete tmp_json[key];
tmp_json[key] = value.join(",");
}
});
temp_role.user_inputs_values = tmp_json;
var stringCustomValues = TemplateUtils.templateToString(extra_info.merge_template.custom_attrs_values);