From 3b09e29e1e1cab9baf3b1380718a3c45126930bd Mon Sep 17 00:00:00 2001 From: amitjai Date: Wed, 31 Jan 2018 16:20:30 +0530 Subject: wrongly setting version Minor and Major version should be set from selected version of VLM Change-Id: Id87e8383bcf02322462f6aef3c1b3d4eb2ad9d94 Issue-ID: SDC-935 Signed-off-by: amitjai --- .../vendorsoftwareproduct/impl/VendorSoftwareProductManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main') diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/VendorSoftwareProductManagerImpl.java b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/VendorSoftwareProductManagerImpl.java index 0257c8d7c2..78ce0787bf 100644 --- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/VendorSoftwareProductManagerImpl.java +++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/impl/VendorSoftwareProductManagerImpl.java @@ -616,8 +616,8 @@ public class VendorSoftwareProductManagerImpl implements VendorSoftwareProductMa .filter(version -> version.getId().equalsIgnoreCase(vlmVersion.getId())) .findAny() .ifPresent(version -> { - vlmVersion.setMinor(vlmVersion.getMinor()); - vlmVersion.setMajor(vlmVersion.getMajor()); + vlmVersion.setMinor(version.getMinor()); + vlmVersion.setMajor(version.getMajor()); }); } -- cgit 1.2.3-korg