From 2cca1c820e38b45879abe1c82ce994283a55818c Mon Sep 17 00:00:00 2001 From: "Determe, Sebastien (sd378r)" Date: Tue, 28 May 2019 16:38:47 +0200 Subject: Fix target Type Fix target type must be VFMODULE instead of VFModule Issue-ID: CLAMP-395 Change-Id: Ie34422985a13a1f2bc29fb06aceafb3994d2140a Signed-off-by: Determe, Sebastien (sd378r) --- .../designer/partials/portfolios/operational_policy_window.html | 2 +- .../META-INF/resources/designer/scripts/OperationalPolicyCtrl.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/resources') diff --git a/src/main/resources/META-INF/resources/designer/partials/portfolios/operational_policy_window.html b/src/main/resources/META-INF/resources/designer/partials/portfolios/operational_policy_window.html index 9eb6c3b66..db127f7d2 100644 --- a/src/main/resources/META-INF/resources/designer/partials/portfolios/operational_policy_window.html +++ b/src/main/resources/META-INF/resources/designer/partials/portfolios/operational_policy_window.html @@ -303,7 +303,7 @@ label { diff --git a/src/main/resources/META-INF/resources/designer/scripts/OperationalPolicyCtrl.js b/src/main/resources/META-INF/resources/designer/scripts/OperationalPolicyCtrl.js index 55db5e798..0f9b62ffe 100644 --- a/src/main/resources/META-INF/resources/designer/scripts/OperationalPolicyCtrl.js +++ b/src/main/resources/META-INF/resources/designer/scripts/OperationalPolicyCtrl.js @@ -245,7 +245,7 @@ app } } var resourceVFModule = getResourceDetailsVfModuleProperty(); - if (targetType == "VFModule" && (null !== resourceVFModule || undefined !== resourceVFModule)) { + if (targetType == "VFMODULE" && (null !== resourceVFModule || undefined !== resourceVFModule)) { if (recipe == 'VF Module Create' || recipe == 'VF Module Delete') { for ( var prop in resourceVFModule) { if (resourceVFModule[prop]["isBase"] == false) { @@ -306,7 +306,7 @@ app var resourceVFModule = getResourceDetailsVfModuleProperty(); var type = $("#formId" + formNum +" #type").val(); var recipe = $("#formId" + formNum +" #recipe").val(); - if (type == "VFModule" && (null !== resourceVFModule || undefined !== resourceVFModule) + if (type == "VFMODULE" && (null !== resourceVFModule || undefined !== resourceVFModule) && (recipe == 'VF Module Create' || recipe == 'VF Module Delete')) { for ( var prop in resourceVFModule) { if (prop == $(event.target).val()) { -- cgit 1.2.3-korg