CRM-19167 add is_deceased filter to contact detail report
authoreileen <emcnaughton@wikimedia.org>
Tue, 2 Aug 2016 22:42:06 +0000 (10:42 +1200)
committereileen <emcnaughton@wikimedia.org>
Tue, 2 Aug 2016 22:48:59 +0000 (10:48 +1200)
CRM/Report/Form/Contact/Detail.php

index f738138a08e76c071a2a2c90ef28371c99f8646b..417cf07e079a31930f5976c3925eab561568e4ec 100644 (file)
@@ -45,8 +45,7 @@ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form {
   );
 
   /**
-   */
-  /**
+   * Class constructor.
    */
   public function __construct() {
     $this->_autoIncludeIndexedFieldsAsOrderBys = 1;
@@ -89,30 +88,7 @@ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form {
             'title' => ts('Contact Subtype'),
           ),
         ),
-        'filters' => array(
-          'id' => array(
-            'title' => ts('Contact ID'),
-            'no_display' => TRUE,
-          ),
-          'sort_name' => array(
-            'title' => ts('Contact Name'),
-          ),
-          'gender_id' => array(
-            'title' => ts('Gender'),
-            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-            'options' => CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', 'gender_id'),
-          ),
-          'birth_date' => array(
-            'title' => ts('Birth Date'),
-            'operatorType' => CRM_Report_Form::OP_DATE,
-          ),
-          'contact_type' => array(
-            'title' => ts('Contact Type'),
-          ),
-          'contact_sub_type' => array(
-            'title' => ts('Contact Subtype'),
-          ),
-        ),
+        'filters' => $this->getBasicContactFilters(),
         'grouping' => 'contact-fields',
         'order_bys' => array(
           'sort_name' => array(