diff options
author | andre.schmid <andre.schmid@est.tech> | 2022-03-23 15:39:45 +0000 |
---|---|---|
committer | andre.schmid <andre.schmid@est.tech> | 2022-03-28 16:52:47 +0100 |
commit | 32f75a4854fc1bcf3bfbd8037f2d1682cbbd9fc5 (patch) | |
tree | 3c40200e9cdd8a4f3f93a0137ce5c02180890143 /catalog-model | |
parent | 7fc7a76be1e90b9d75f7f6f11181a150cb1d1386 (diff) |
Fix Service/VF set value to list/map properties
In the Service Property Assignment page, setting a value to a property
of type list<complex> or map<complex> 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 <andre.schmid@est.tech>
(cherry picked from commit 88fdc6dd75f1119ffa8e54dbfd721b6ed722b779)
Diffstat (limited to 'catalog-model')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/PropertyDefinition.java | 3 |
1 files changed, 3 insertions, 0 deletions
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()); } |