From 410e810572dc7578a957d39922a4325914c69c6e Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 9 Feb 2017 15:11:19 +0530 Subject: [PATCH] CRM-19883 - fix display in report rows --- CRM/Report/Form/Activity.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CRM/Report/Form/Activity.php b/CRM/Report/Form/Activity.php index 5ab3e3e724..820b6f6d1e 100644 --- a/CRM/Report/Form/Activity.php +++ b/CRM/Report/Form/Activity.php @@ -285,6 +285,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form { ), 'priority_id' => array( 'title' => ts('Activity Priority'), + 'type' => CRM_Utils_Type::T_STRING, 'operatorType' => CRM_Report_Form::OP_MULTISELECT, 'options' => CRM_Core_PseudoConstant::get('CRM_Activity_DAO_Activity', 'priority_id'), ), @@ -887,6 +888,7 @@ FROM civireport_activity_temp_target tar $entryFound = FALSE; $activityType = CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE); $activityStatus = CRM_Core_PseudoConstant::activityStatus(); + $priority = CRM_Core_PseudoConstant::get('CRM_Activity_DAO_Activity', 'priority_id'); $viewLinks = FALSE; $context = CRM_Utils_Request::retrieve('context', 'String', $this, FALSE, 'report'); $actUrl = ''; @@ -1003,6 +1005,13 @@ FROM civireport_activity_temp_target tar } } + if (array_key_exists('civicrm_activity_priority_id', $row)) { + if ($value = $row['civicrm_activity_priority_id']) { + $rows[$rowNum]['civicrm_activity_priority_id'] = $priority[$value]; + $entryFound = TRUE; + } + } + if (array_key_exists('civicrm_activity_details', $row) && $this->_outputMode == 'html') { if ($value = $row['civicrm_activity_details']) { $fullDetails = $rows[$rowNum]['civicrm_activity_details']; -- 2.25.1