CRM-15783 - add location field to activity report
authorJamie McClelland <jm@mayfirst.org>
Mon, 5 Jan 2015 17:22:58 +0000 (12:22 -0500)
committerJamie McClelland <jm@mayfirst.org>
Mon, 5 Jan 2015 17:22:58 +0000 (12:22 -0500)
----------------------------------------
* CRM-15783: Activity report would be more useful with the location field exposed
  https://issues.civicrm.org/jira/browse/CRM-15783

CRM/Report/Form/Activity.php

index f46b8639efef7946981613f7726f7e14a88d734d..787521fac3547fc16d6827b18fcd80e5b7e77783 100644 (file)
@@ -229,6 +229,10 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
           array('title' => ts('Duration'),
             'type' => CRM_Utils_Type::T_INT,
           ),
+          'location' =>
+          array('title' => ts('Location'),
+            'type' => CRM_Utils_Type::T_STRING,
+          ),
           'details' => array(
             'title' => ts('Activity Details'),
           )
@@ -240,6 +244,10 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
           ),
           'activity_subject' =>
           array('title' => ts('Activity Subject')),
+          'location' =>
+            array('title' => ts('Location'),
+            'type' => CRM_Utils_Type::T_TEXT,
+          ),
           'activity_type_id' =>
           array('title' => ts('Activity Type'),
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,