From 413d53513c0fc854be4d1656643ad5c4ce65d718 Mon Sep 17 00:00:00 2001 From: "kaushik.p" <kaushik.p@vtigersolutions.com> Date: Wed, 24 Jan 2024 15:05:04 +0530 Subject: [PATCH] #Fixes::158177825::kaushik::Forward email with attached documents in mail manager results 500 error fixed --- modules/Vtiger/views/ComposeEmail.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/Vtiger/views/ComposeEmail.php b/modules/Vtiger/views/ComposeEmail.php index 8b37aa2f5..0f4742368 100644 --- a/modules/Vtiger/views/ComposeEmail.php +++ b/modules/Vtiger/views/ComposeEmail.php @@ -429,6 +429,9 @@ class Vtiger_ComposeEmail_View extends Vtiger_Footer_View { $CC = Zend_Json::decode(html_entity_decode($recordModel->get('ccmail'))); $BCC = Zend_Json::decode(html_entity_decode($recordModel->get('bccmail'))); + // Under Condition CC & BCC fields are empty .. + $CC = is_array($CC) ? $CC : array(); + $BCC = is_array($BCC) ? $BCC : array(); $parentIds = explode('|',$recordModel->get('parent_id')); $toMailInfo = $toMailNamesList = array(); -- GitLab