From 88fdc6dd75f1119ffa8e54dbfd721b6ed722b779 Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Wed, 23 Mar 2022 15:39:45 +0000 Subject: Fix Service/VF set value to list/map properties In the Service Property Assignment page, setting a value to a property of type list or map was having the type replaced by the schema type and the value incorrectly set. Add test cases to cover the problem. Include small refactors. Issue-ID: SDC-3926 Change-Id: I1257dbb02e18b103118672ec52d663707d53229c Signed-off-by: andre.schmid --- .../src/main/java/org/openecomp/sdc/be/model/PropertyDefinition.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'catalog-model') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyDefinition.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyDefinition.java index c06df6541f..6e313eda6c 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyDefinition.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyDefinition.java @@ -46,6 +46,9 @@ public class PropertyDefinition extends PropertyDataDefinition implements IOpera public PropertyDefinition(PropertyDefinition pd) { super(pd); + if (pd.getSchema() != null && pd.getSchema().getProperty() instanceof PropertyDefinition) { + this.getSchema().setProperty(new PropertyDefinition(pd.getSchema().getProperty())); + } setConstraints(pd.getConstraints()); } -- cgit 1.2.3-korg