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

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2020-11-10 14:17:15 +01:00
1 parent 821ecfaf4b
commit 8b9cf9d611
1 file changed
+7
@@ -317,6 +317,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);