From 6306af20599e083ccdbcc6c5c8adf253ac2b2aad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Fri, 6 May 2016 15:58:13 +0200 Subject: [PATCH] Feature #4450: capacity modification 'any value' removes the user_input --- .../create/wizard-tabs/general/capacity-create.js | 5 +++++ .../create/wizard-tabs/general/capacity-create/html.hbs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js index a57c47d665..c65d5cdd82 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js @@ -218,6 +218,11 @@ define(function(require) { attr.type = $("."+classname+"_modify_type", context).val(); + if (attr.type == "number" || attr.type == "number-float"){ + // Continue. No user input is the same as 'any value' + return true; + } + attr.name = classname.toUpperCase(); attr.mandatory = true; attr.description = ""; diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create/html.hbs index f0b7adc1d4..28cfb78fd6 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create/html.hbs +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create/html.hbs @@ -45,7 +45,7 @@