Skip to content

Commit

Permalink
Merge pull request #10857 from adixon/CRM-21063
Browse files Browse the repository at this point in the history
CRM-21063 Add date to survey/details report
  • Loading branch information
yashodha authored Sep 19, 2017
2 parents 58486e5 + f049f62 commit b7a8da9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CRM/Report/Form/Campaign/SurveyDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ public function __construct() {
'required' => TRUE,
'title' => ts('Survey Result'),
),
'activity_date_time' => array(
'name' => 'activity_date_time',
'title' => ts('Date'),
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
),
),
'filters' => array(
'survey_id' => array(
Expand All @@ -206,8 +211,18 @@ public function __construct() {
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => $resultOptions,
),
'activity_date_time' => array(
'title' => ts('Date'),
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'operatorType' => CRM_Report_Form::OP_DATE,
),
),
'grouping' => 'survey-activity-fields',
'order_bys' => array(
'activity_date_time' => array(
'title' => ts('Date'),
),
),
),
);
parent::__construct();
Expand Down

0 comments on commit b7a8da9

Please sign in to comment.