From e72924190311857d642349896b80dc517a46b48d Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Tue, 5 Sep 2017 12:49:05 +0200 Subject: [PATCH] B #5296 Solved bug when INPUTS_ORDER is not defined (#429) --- src/sunstone/public/app/utils/user-inputs.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/utils/user-inputs.js b/src/sunstone/public/app/utils/user-inputs.js index 055155588a..f240d13c0d 100644 --- a/src/sunstone/public/app/utils/user-inputs.js +++ b/src/sunstone/public/app/utils/user-inputs.js @@ -364,7 +364,6 @@ define(function(require) { if(opts.defaults.INPUTS_ORDER){ var order = opts.defaults.INPUTS_ORDER; var orderJSON = order.split(","); - $.each(orderJSON, function(key, value){ var orderValue = value; $.each(input_attrs, function(index, custom_attr) { @@ -381,6 +380,18 @@ define(function(require) { } }); }); + } else { + $.each(input_attrs, function(index, custom_attr) { + $(".instantiate_user_inputs", div).append( + '
' + + '
' + + '' + + '
' + + '
'); + }); } }