summaryrefslogtreecommitdiffstats
path: root/catalog-be/src
diff options
context:
space:
mode:
authorKrupaNagabhushan <krupa.nagabhushan@est.tech>2023-03-08 10:18:49 +0000
committerVasyl Razinkov <vasyl.razinkov@est.tech>2023-03-08 18:04:44 +0000
commited163d02d66b80496829f611ce03ef6fdf875be3 (patch)
tree15bc6a60309a80b5278ac122f5dd82c7b12864dd /catalog-be/src
parenta522a3a2c2b262780dd0efab5747ef937e124bee (diff)
Fix undeclarePropertiesAsInput in UI after Service Import
Issue-ID: SDC-4428 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I8cf97b676e82db135b8850bea0efa23d562f38af
Diffstat (limited to 'catalog-be/src')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/property/DefaultPropertyDeclarator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/property/DefaultPropertyDeclarator.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/property/DefaultPropertyDeclarator.java
index f3cafd703d..eba66d271a 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/property/DefaultPropertyDeclarator.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/property/DefaultPropertyDeclarator.java
@@ -479,6 +479,9 @@ public abstract class DefaultPropertyDeclarator<PROPERTYOWNER extends Properties
op.ifPresent(getInputsValues::remove);
}
inputValue.setGetInputValues(getInputsValues);
+ if (CollectionUtils.isEmpty(inputValue.getGetInputValues()) && inputValue.getToscaFunction() != null) {
+ inputValue.setToscaFunction(null);
+ }
return deleteEither;
}