From 8a28f1e39f84b55aa2b0f24f9e0e675b5ab3fe33 Mon Sep 17 00:00:00 2001 From: Jaswanth-Sriram-Veturi Date: Wed, 14 Aug 2024 12:55:59 +0530 Subject: [PATCH] FINERACT-2081: Fix update client identifier --- .../fineract/portfolio/client/domain/ClientIdentifier.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fineract-core/src/main/java/org/apache/fineract/portfolio/client/domain/ClientIdentifier.java b/fineract-core/src/main/java/org/apache/fineract/portfolio/client/domain/ClientIdentifier.java index 3c4beaadce..a42810a8b5 100644 --- a/fineract-core/src/main/java/org/apache/fineract/portfolio/client/domain/ClientIdentifier.java +++ b/fineract-core/src/main/java/org/apache/fineract/portfolio/client/domain/ClientIdentifier.java @@ -112,8 +112,8 @@ public Map update(final JsonCommand command) { final String statusParamName = "status"; if (command.isChangeInStringParameterNamed(statusParamName, ClientIdentifierStatus.fromInt(this.status).getCode())) { - final String newValue = command.stringValueOfParameterNamed(descriptionParamName); - actualChanges.put(descriptionParamName, ClientIdentifierStatus.valueOf(newValue)); + final String newValue = command.stringValueOfParameterNamed(statusParamName); + actualChanges.put(statusParamName, ClientIdentifierStatus.valueOf(newValue)); this.status = ClientIdentifierStatus.valueOf(newValue).getValue(); }