From 8c0f4f19b24cea4a3059c514f046b7fabb1886aa Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Mon, 11 Jun 2018 13:38:03 +0200 Subject: [PATCH] Adv options broken if rp is empty [vCenter VM Template] (#2170) --- src/sunstone/public/app/utils/vcenter/templates.js | 2 +- src/sunstone/public/app/utils/vcenter/templates/row.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/app/utils/vcenter/templates.js b/src/sunstone/public/app/utils/vcenter/templates.js index c9cc1391a5..c8f83e5bbb 100644 --- a/src/sunstone/public/app/utils/vcenter/templates.js +++ b/src/sunstone/public/app/utils/vcenter/templates.js @@ -201,7 +201,7 @@ define(function(require) { opts[ref] = {}; - opts[ref].type = $(".modify_rp", row_context).val(); + opts[ref].type = ($(".modify_rp", row_context).val() ? $(".modify_rp", row_context).val() : "default"); var rpInput = $(".vcenter_rp_input", row_context); var rpParams = []; diff --git a/src/sunstone/public/app/utils/vcenter/templates/row.hbs b/src/sunstone/public/app/utils/vcenter/templates/row.hbs index ab1d3ad1e7..9b34c313dd 100644 --- a/src/sunstone/public/app/utils/vcenter/templates/row.hbs +++ b/src/sunstone/public/app/utils/vcenter/templates/row.hbs @@ -58,6 +58,7 @@ + {{/if}}
@@ -90,7 +91,6 @@
- {{/if}}