From d3426c49fddd4808692ce124c66aaedd025ed246 Mon Sep 17 00:00:00 2001
From: "madhu.sr" <madhu.sr@vtigersolutions.com>
Date: Sun, 24 Mar 2024 12:49:02 +0530
Subject: [PATCH] #Fixes::158905064::madhusr::When there is an empty field in
 the update field page is breaking

---
 layouts/v7/modules/Settings/Workflows/resources/Edit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layouts/v7/modules/Settings/Workflows/resources/Edit.js b/layouts/v7/modules/Settings/Workflows/resources/Edit.js
index fa768106f..afd426d5b 100644
--- a/layouts/v7/modules/Settings/Workflows/resources/Edit.js
+++ b/layouts/v7/modules/Settings/Workflows/resources/Edit.js
@@ -603,7 +603,7 @@ Settings_Vtiger_Edit_Js("Settings_Workflows_Edit_Js", {
    isEmptyFieldSelected: function (fieldSelect) {
       var selectedOption = fieldSelect.find('option:selected');
       //assumption that empty field will be having value none
-      if (selectedOption.val() == 'none') {
+      if (selectedOption.val() == 'none' || selectedOption.val() === '') {
          return true;
       }
       return false;
-- 
GitLab