From 343bf489097bccc2ed304d8815f6782b753322b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Mon, 2 Nov 2015 13:12:10 +0100 Subject: [PATCH] Bug #4071: Do not send an empty service name (cherry picked from commit effe92acf5465d406779c2da640d80bc32a2b7ef) --- src/sunstone/public/app/tabs/provision-tab.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/provision-tab.js b/src/sunstone/public/app/tabs/provision-tab.js index afe64d309f..2eb542e7d1 100644 --- a/src/sunstone/public/app/tabs/provision-tab.js +++ b/src/sunstone/public/app/tabs/provision-tab.js @@ -1638,12 +1638,15 @@ define(function(require) { var extra_info = { 'merge_template': { - "name" : flow_name, "roles" : roles, "custom_attrs_values": custom_attrs } } + if (flow_name){ + extra_info["merge_template"]["name"] = flow_name; + } + if (missing_attr) { $(".alert-box-error", $(this)).fadeIn().html(Locale.tr("You have not specified all the Custom Atrributes for this Service")); return false;