* @access public
* @static
*
- * @return array - array reference of all activty types.
+ * @return array - array reference of all activity types.
*/
public static function &caseActivityType($indexName = TRUE, $all = FALSE) {
$cache = (int) $indexName . '_' . (int) $all;
if ($dao->activity_type_id == CRM_Core_OptionGroup::getValue('activity_type', 'Email', 'name')) {
$anyActivity = TRUE;
}
- $activityTypes = $this->allActivityTypes(FALSE, $anyActivity);
+ $activityTypes = CRM_Case_PseudoConstant::caseActivityType(FALSE, $anyActivity);
$activityTypeInfo = NULL;
if (isset($activityTypes[$dao->activity_type_id])) {