From 07885c96b7cfe5f829d5977df7270040f1c688f2 Mon Sep 17 00:00:00 2001
From: "yogeshwar.g" <yogeshwar.g@vtigersolutions.com>
Date: Thu, 11 Jan 2024 13:24:33 +0530
Subject: [PATCH] #Fixes::158119577::yogeshwar::workflow task is not creating
 when given condition firstname as 0

---
 modules/com_vtiger_workflow/VTJsonCondition.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/com_vtiger_workflow/VTJsonCondition.inc b/modules/com_vtiger_workflow/VTJsonCondition.inc
index 11a11f10e..210aa5e41 100644
--- a/modules/com_vtiger_workflow/VTJsonCondition.inc
+++ b/modules/com_vtiger_workflow/VTJsonCondition.inc
@@ -360,7 +360,7 @@ class VTJsonCondition {
 				}
 				return false;
 			case "is not empty":
-				if(empty($fieldValue)) {
+				if(empty($fieldValue) && $fieldValue!=0) {
 					return false;
 				}
 				return true;
-- 
GitLab