if ($this->_action & CRM_Core_Action::UPDATE) {
CRM_Core_Form_RecurringEntity::preProcess('civicrm_activity');
}
+
+ if ($this->_action & CRM_Core_Action::VIEW) {
+ $url = CRM_Utils_System::url(implode("/", $this->urlPath), "reset=1&id={$this->_activityId}&action=view&cid={$this->_values['source_contact_id']}");
+ CRM_Utils_Recent::add($this->_values['subject'],
+ $url,
+ $this->_values['id'],
+ 'Activity',
+ $this->_values['source_contact_id'],
+ $this->_values['source_contact']
+ );
+ }
}
/**
$values['attachment'] = CRM_Core_BAO_File::attachmentInfo('civicrm_activity', $activityId);
$this->assign('values', $values);
+
+ $url = CRM_Utils_System::url(implode("/", $this->urlPath), "reset=1&id={$activityId}&action=view&cid={$values['source_contact_id']}");
+ CRM_Utils_Recent::add($this->_values['subject'],
+ $url,
+ $values['id'],
+ 'Activity',
+ $values['source_contact_id'],
+ $values['source_contact']
+ );
}
/**