+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
*/
/**
// Set title.
if (isset($activityTName)) {
$activityName = CRM_Utils_Array::value($this->_activityTypeId, $activityTName);
- $this->assign('pageTitle', ts('%1 Activity', array(1 => $activityName)));
if ($this->_currentlyViewedContactId) {
$displayName = CRM_Contact_BAO_Contact::displayName($this->_currentlyViewedContactId);
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']) ?: '';
+ if (isset($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')