From 757f9d0315920c3fbbbe1570d2eeac26cc3e6f06 Mon Sep 17 00:00:00 2001 From: Camilo Rodriguez Date: Thu, 18 Jan 2018 22:19:19 +0000 Subject: [PATCH] CRM-21425: Fix 'Array' Appearing Insted of Empty Details When having only basic access to edit inbound e-mails, if the task's details are null, an message saying 'Array' was being shown, instead of the empty details. Fixed by changing null for an empty string. --- CRM/Activity/Form/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Activity/Form/Activity.php b/CRM/Activity/Form/Activity.php index 4990f1a3c3..d4c195bb31 100644 --- a/CRM/Activity/Form/Activity.php +++ b/CRM/Activity/Form/Activity.php @@ -523,7 +523,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task { if ($this->_action & CRM_Core_Action::UPDATE) { // We filter out alternatives, in case this is a stored e-mail, before sending to front-end - $this->_values['details'] = CRM_Utils_String::stripAlternatives($this->_values['details']); + $this->_values['details'] = CRM_Utils_String::stripAlternatives($this->_values['details']) ?: ''; if ($this->_activityTypeName === 'Inbound Email' && !CRM_Core_Permission::check('edit inbound email basic information and content') -- 2.25.1