Additional changes for Case, Campaign and Grant reports
authorWeb Access <rohan.katkar@webaccessglobal.com>
Mon, 15 Feb 2016 13:08:36 +0000 (18:38 +0530)
committerWeb Access <rohan.katkar@webaccessglobal.com>
Mon, 15 Feb 2016 13:08:36 +0000 (18:38 +0530)
CRM/Report/Form/Activity.php
CRM/Report/Form/Campaign/SurveyDetails.php
CRM/Report/Form/Case/Detail.php
CRM/Report/Form/Case/Summary.php
CRM/Report/Form/Case/TimeSpent.php
CRM/Report/Form/Contribute/Summary.php
CRM/Report/Form/Grant/Detail.php
CRM/Report/Form/Grant/Statistics.php

index a1500f9b566a6d1a56f331add441b1d449846e33..84bc5ea730eeaf236f897703efb467c4a9b3e109 100644 (file)
@@ -312,6 +312,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
         );
         $this->_columns['civicrm_activity']['filters']['campaign_id'] = array(
           'title' => ts('Campaign'),
+          'type' => CRM_Utils_Type::T_INT,
           'operatorType' => CRM_Report_Form::OP_MULTISELECT,
           'options' => $this->activeCampaigns,
         );
@@ -323,6 +324,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
         );
         $this->_columns['civicrm_activity']['filters']['engagement_level'] = array(
           'title' => ts('Engagement Index'),
+          'type' => CRM_Utils_Type::T_INT,
           'operatorType' => CRM_Report_Form::OP_MULTISELECT,
           'options' => $this->engagementLevels,
         );
index 7c2eb30c9c5260973869ab6dbadd321f92f3566d..895d3f9508f865f1b7a6b2360ebdfd9e1c54cedc 100644 (file)
@@ -204,12 +204,14 @@ class CRM_Report_Form_Campaign_SurveyDetails extends CRM_Report_Form {
           'state_province_id' => array(
             'name' => 'state_province_id',
             'title' => ts('State/Province'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_PseudoConstant::stateProvince(),
           ),
           'country_id' => array(
             'name' => 'country_id',
             'title' => ts('Country'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_PseudoConstant::country(),
           ),
index 3ae4c7597c53847a2a5404747c53a7cf6468a7ea..3637d7eb061310725db81173e9b038c00f420fc6 100644 (file)
@@ -117,11 +117,13 @@ class CRM_Report_Form_Case_Detail extends CRM_Report_Form {
           ),
           'status_id' => array(
             'title' => ts('Case Status'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Case_BAO_Case::buildOptions('status_id', 'search'),
           ),
           'case_type_id' => array(
             'title' => ts('Case Type'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Case_BAO_Case::buildOptions('case_type_id', 'search'),
           ),
@@ -163,6 +165,7 @@ class CRM_Report_Form_Case_Detail extends CRM_Report_Form {
           'case_role' => array(
             'name' => 'relationship_type_id',
             'title' => ts('Case Role(s)'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => $this->rel_types,
           ),
index 6d30e3ecdbc2863a0ae9d2dc9917aa51ba4099bc..65fa79dfe4ae443fb1f15a3ac9bf0e70923565c9 100644 (file)
@@ -130,6 +130,7 @@ class CRM_Report_Form_Case_Summary extends CRM_Report_Form {
           ),
           'status_id' => array(
             'title' => ts('Status'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Case_BAO_Case::buildOptions('status_id', 'search'),
           ),
@@ -161,6 +162,7 @@ class CRM_Report_Form_Case_Summary extends CRM_Report_Form {
         'filters' => array(
           'relationship_type_id' => array(
             'title' => ts('Staff Relationship'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => $this->rel_types,
           ),
index 1afb6f8dc03ffd63f76f28e05fcb7a26f201d19d..f00f02d6628b296405fd6257c6437784faf3ee7b 100644 (file)
@@ -103,6 +103,7 @@ class CRM_Report_Form_Case_TimeSpent extends CRM_Report_Form {
           ),
           'subject' => array(
             'title' => ts('Activity Subject'),
+            'type' => CRM_Utils_Type::T_STRING,
             'operator' => 'like',
           ),
           'activity_type_id' => array(
@@ -112,6 +113,7 @@ class CRM_Report_Form_Case_TimeSpent extends CRM_Report_Form {
           ),
           'status_id' => array(
             'title' => ts('Activity Status'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => $this->activityStatuses,
           ),
index f385e6e2a08d4a9f657f55dd23e2a8772ed8692a..685458c637ff7439baf66ce7bfe5fb43d90db9ec 100644 (file)
@@ -265,6 +265,7 @@ class CRM_Report_Form_Contribute_Summary extends CRM_Report_Form {
       );
       $this->_columns['civicrm_contribution']['filters']['campaign_id'] = array(
         'title' => ts('Campaign'),
+        'type' => CRM_Utils_Type::T_INT,
         'operatorType' => CRM_Report_Form::OP_MULTISELECT,
         'options' => $this->activeCampaigns,
       );
index 36d3f2e694c09c1552c535d2fa7d667df7295e5b..34dbfa209b888a708dc7400cb20420b2807122f4 100644 (file)
@@ -81,11 +81,13 @@ class CRM_Report_Form_Grant_Detail extends CRM_Report_Form {
         'filters' => array(
           'country_id' => array(
             'title' => ts('Country'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_PseudoConstant::country(),
           ),
           'state_province_id' => array(
             'title' => ts('State/Province'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_PseudoConstant::stateProvince(),
           ),
@@ -150,6 +152,7 @@ class CRM_Report_Form_Grant_Detail extends CRM_Report_Form {
           'status_id' => array(
             'name' => 'status_id',
             'title' => ts('Grant Status'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_PseudoConstant::get('CRM_Grant_DAO_Grant', 'status_id'),
           ),
index 8d2a1f19b1a63cb6d0bbc6f6c0b13f384580e1f1..2146d12e3d3239db5be0b1eaba47c427ca8862ff 100644 (file)
@@ -109,6 +109,7 @@ class CRM_Report_Form_Grant_Statistics extends CRM_Report_Form {
           'status_id' => array(
             'name' => 'status_id',
             'title' => ts('Grant Status'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_PseudoConstant::get('CRM_Grant_DAO_Grant', 'status_id'),
           ),
@@ -180,6 +181,7 @@ class CRM_Report_Form_Grant_Statistics extends CRM_Report_Form {
           'region_id' => array(
             'name' => 'id',
             'title' => ts('World Region'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_PseudoConstant::worldRegion(),
           ),
@@ -196,6 +198,7 @@ class CRM_Report_Form_Grant_Statistics extends CRM_Report_Form {
         'filters' => array(
           'country_id' => array(
             'title' => ts('Country'),
+            'type' => CRM_Utils_Type::T_INT,
             'operatorType' => CRM_Report_Form::OP_MULTISELECT,
             'options' => CRM_Core_PseudoConstant::country(),
           ),