From: MichaelMorris Date: Wed, 20 Jan 2021 13:59:46 +0000 (+0000) Subject: Fix updating of category specific metadata X-Git-Tag: 1.8.1~9 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=640bf9874707c23de7c4110c0fd1c40f6c2023bf;p=sdc.git Fix updating of category specific metadata When updating a previously set value for a category specific metadata entry, the new value was not being persisted Signed-off-by: MichaelMorris Issue-ID: SDC-3441 Change-Id: Id47d53f4fddd3bfbdaf83ed354494602013f58fe --- diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceBusinessLogic.java index a38ffe9ee0..dfc9166064 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceBusinessLogic.java @@ -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) {