From 9d2dd2e312913c7bf5a5745c4dac7ec3d038e9b4 Mon Sep 17 00:00:00 2001 From: adixon Date: Mon, 14 Aug 2017 13:56:58 -0400 Subject: [PATCH] CRM-21063 Add date to survey/details report --- CRM/Report/Form/Campaign/SurveyDetails.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CRM/Report/Form/Campaign/SurveyDetails.php b/CRM/Report/Form/Campaign/SurveyDetails.php index d5c7b58e69..64fef2e389 100644 --- a/CRM/Report/Form/Campaign/SurveyDetails.php +++ b/CRM/Report/Form/Campaign/SurveyDetails.php @@ -182,6 +182,11 @@ class CRM_Report_Form_Campaign_SurveyDetails extends CRM_Report_Form { 'required' => TRUE, 'title' => ts('Survey Result'), ), + 'activity_date_time' => array( + 'name' => 'activity_date_time', + 'title' => ts('Date'), + 'type' => CRM_Utils_Type::T_DATE, + ), ), 'filters' => array( 'survey_id' => array( @@ -204,8 +209,18 @@ class CRM_Report_Form_Campaign_SurveyDetails extends CRM_Report_Form { 'operatorType' => CRM_Report_Form::OP_MULTISELECT, 'options' => $resultOptions, ), + 'activity_date_time' => array( + 'title' => ts('Date'), + 'type' => CRM_Utils_Type::T_DATE, + 'operatorType' => CRM_Report_Form::OP_DATE, + ), ), 'grouping' => 'survey-activity-fields', + 'order_bys' => array( + 'activity_date_time' => array( + 'title' => ts('Date'), + ), + ), ), ) + $this->getAddressColumns(); parent::__construct(); -- 2.25.1