From 794f8025398951f614b37c8619b67b73eef0c474 Mon Sep 17 00:00:00 2001 From: DemeritCowboy Date: Tue, 13 Aug 2019 23:38:13 -0400 Subject: [PATCH] make temporary function towards bigger changes --- CRM/Activity/Form/Activity.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CRM/Activity/Form/Activity.php b/CRM/Activity/Form/Activity.php index 1756069f7e..74ab126b64 100644 --- a/CRM/Activity/Form/Activity.php +++ b/CRM/Activity/Form/Activity.php @@ -325,7 +325,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task { // Assigning Activity type name. if ($this->_activityTypeId) { - $activityTypeDisplayLabels = CRM_Core_OptionGroup::values('activity_type', FALSE, FALSE, FALSE, 'AND v.value = ' . $this->_activityTypeId, 'label'); + $activityTypeDisplayLabels = $this->getActivityTypeDisplayLabels(); if ($activityTypeDisplayLabels[$this->_activityTypeId]) { $this->_activityTypeName = $activityTypeDisplayLabels[$this->_activityTypeId]; // can't change this instance of activityTName yet - will come back to it dev/core#1116 @@ -1249,4 +1249,13 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task { } } + /** + * For the moment keeping this the same as the original pulled from preProcess(). Also note the "s" at the end of the function name - planning to change that but in baby steps. + * + * @return string[] + */ + public function getActivityTypeDisplayLabels() { + return CRM_Core_OptionGroup::values('activity_type', FALSE, FALSE, FALSE, 'AND v.value = ' . $this->_activityTypeId, 'label'); + } + } -- 2.25.1