From: eileen Date: Tue, 2 Aug 2016 22:47:20 +0000 (+1200) Subject: CRM-19167 add is_deceased filter to employee report X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=04e36c972188e1e2b162f8205e069e755e2196e4;p=civicrm-core.git CRM-19167 add is_deceased filter to employee report --- diff --git a/CRM/Report/Form/Contact/CurrentEmployer.php b/CRM/Report/Form/Contact/CurrentEmployer.php index 150fe68cf8..e5ea4b76d5 100644 --- a/CRM/Report/Form/Contact/CurrentEmployer.php +++ b/CRM/Report/Form/Contact/CurrentEmployer.php @@ -43,8 +43,6 @@ class CRM_Report_Form_Contact_CurrentEmployer extends CRM_Report_Form { public $_drilldownReport = array('contact/detail' => 'Link to Detail Report'); - /** - */ /** */ public function __construct() { @@ -111,32 +109,7 @@ class CRM_Report_Form_Contact_CurrentEmployer extends CRM_Report_Form { 'title' => ts('Contact Subtype'), ), ), - 'filters' => array( - 'sort_name' => array('title' => ts('Employee Name')), - 'source' => array( - 'title' => ts('Contact Source'), - 'type' => CRM_Utils_Type::T_STRING, - ), - 'id' => array( - 'title' => ts('Contact ID'), - 'no_display' => TRUE, - ), - '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' => array_merge($this->getBasicContactFilters(), array('sort_name' => array('title' => ts('Employee Name')))), 'grouping' => 'contact-fields', ), 'civicrm_relationship' => array(