Fix updating of category specific metadata 22/117022/2
authorMichaelMorris <michael.morris@est.tech>
Wed, 20 Jan 2021 13:59:46 +0000 (13:59 +0000)
committerChristophe Closset <christophe.closset@intl.att.com>
Fri, 22 Jan 2021 12:34:31 +0000 (12:34 +0000)
When updating a previously set value for a category specific metadata entry, the new value was not being persisted

Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-3441
Change-Id: Id47d53f4fddd3bfbdaf83ed354494602013f58fe

catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceBusinessLogic.java

index a38ffe9..dfc9166 100644 (file)
@@ -1326,6 +1326,7 @@ public class ServiceBusinessLogic extends ComponentBusinessLogic {
             validateAndUpdateEcompNaming(currentService, serviceUpdate);
 
             currentService.setEnvironmentContext(serviceUpdate.getEnvironmentContext());
+            currentService.setCategorySpecificMetadata(serviceUpdate.getCategorySpecificMetadata());
             return Either.left(currentService);
 
         } catch (ComponentException exception) {