From b5749744fd117cd43f20fb6549b395cd835719de Mon Sep 17 00:00:00 2001
From: Saroj Singh <saroj.kumarsingh@tarento.com>
Date: Wed, 4 Jan 2023 21:06:27 +0530
Subject: [PATCH] fix-DELETED-STATUS

---
 .../java/com/tarento/formservice/utils/ValidationService.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/com/tarento/formservice/utils/ValidationService.java b/src/main/java/com/tarento/formservice/utils/ValidationService.java
index ab4e721..7f00767 100644
--- a/src/main/java/com/tarento/formservice/utils/ValidationService.java
+++ b/src/main/java/com/tarento/formservice/utils/ValidationService.java
@@ -174,7 +174,9 @@ public class ValidationService {
 		} else if (StringUtils.isNotBlank(form.getStatus())
 				&& form.getStatus().equalsIgnoreCase(Status.UNPUBLISH.name())) {
 			form.setStatus(Status.UNPUBLISH.name());
-		} else {
+		} else if (StringUtils.isNotBlank(form.getStatus()) && form.getStatus().equalsIgnoreCase(Status.DELETED.name())){
+			form.setStatus(Status.DELETED.name());
+		}else {
 			form.setStatus(Status.PUBLISH.name());
 		}
 	}
-- 
GitLab