From 86effd588e4b7a525d3120f59e597c81948ea7d7 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Mon, 9 Mar 2020 19:52:17 -0400 Subject: [PATCH] remove unused misnamed variable --- CRM/Activity/Form/ActivityView.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CRM/Activity/Form/ActivityView.php b/CRM/Activity/Form/ActivityView.php index 3ef07b7aa1..e3df30c80a 100644 --- a/CRM/Activity/Form/ActivityView.php +++ b/CRM/Activity/Form/ActivityView.php @@ -54,12 +54,8 @@ class CRM_Activity_Form_ActivityView extends CRM_Core_Form { $params = ['id' => $activityId]; CRM_Activity_BAO_Activity::retrieve($params, $defaults); - // Set activity type name and description to template. - list($activityTypeName, $activityTypeDescription) = CRM_Core_BAO_OptionValue::getActivityTypeDetails($defaults['activity_type_id']); - - // activityTypeName - dev/core#1116-unknown-if-ok - // It seems like activityTypeName is no longer used? Description is still used though. See PR notes for more details. - $this->assign('activityTypeName', $activityTypeName); + // Send activity type description to template. + list(, $activityTypeDescription) = CRM_Core_BAO_OptionValue::getActivityTypeDetails($defaults['activity_type_id']); $this->assign('activityTypeDescription', $activityTypeDescription); if (!empty($defaults['mailingId'])) { -- 2.25.1