Fix Inputs Value field to allow null value 01/116601/2
authorKrupaNagabhushan <krupa.nagabhushan@est.tech>
Fri, 4 Dec 2020 12:54:44 +0000 (12:54 +0000)
committerChristophe Closset <christophe.closset@intl.att.com>
Tue, 12 Jan 2021 13:52:09 +0000 (13:52 +0000)
Issue-ID: SDC-3430
Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech>
Change-Id: I845aeb2bf380b5661b5c88bc3f00f388a075efbf

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

index c99b13a..69adb90 100644 (file)
@@ -268,7 +268,7 @@ public class InputsBusinessLogic extends BaseBusinessLogic {
 
         Either<Object, Boolean> isValid = propertyOperation.validateAndUpdatePropertyValue(propertyType, newInput.getDefaultValue(), true, innerType, dataTypes);
 
-        String newValue = currentInput.getDefaultValue();
+        String newValue = newInput.getDefaultValue();
         if (isValid.isRight()) {
             Boolean res = isValid.right().value();
             if (Boolean.FALSE.equals(res)) {