From 33240b75d7492d1864cb34c8b4312ae0a8b55194 Mon Sep 17 00:00:00 2001 From: Prasad <prasad@vtiger.com> Date: Thu, 2 May 2024 11:14:45 +0530 Subject: [PATCH] Fixed email internal mailer only when there is reference to record --- modules/Vtiger/uitypes/Email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Vtiger/uitypes/Email.php b/modules/Vtiger/uitypes/Email.php index 31cd3dc60..b596fe0b6 100644 --- a/modules/Vtiger/uitypes/Email.php +++ b/modules/Vtiger/uitypes/Email.php @@ -24,7 +24,7 @@ class Vtiger_Email_UIType extends Vtiger_Base_UIType { if($value){ $moduleName = $this->get('field')->get('block')->module->name; $fieldName = $this->get('field')->get('name'); - if ($internalMailer == 1) { + if ($internalMailer == 1 && $recordId) { /** * We should not add "emailField" class to user name field. * If we do so, for sending mail from list view is taking that value as a TO field. -- GitLab