Merge pull request #12643 from jmcclelland/issue320
authorcolemanw <coleman@civicrm.org>
Mon, 13 Aug 2018 00:06:58 +0000 (20:06 -0400)
committerGitHub <noreply@github.com>
Mon, 13 Aug 2018 00:06:58 +0000 (20:06 -0400)
filter current employer report by all groups

CRM/Report/Form/Contact/CurrentEmployer.php

index aef934e7fa2770eadc95b060fd254a5f9ba39a8c..67466c8cb6aec4761671faabb286b541f7278df6 100644 (file)
@@ -189,22 +189,9 @@ class CRM_Report_Form_Contact_CurrentEmployer extends CRM_Report_Form {
           ),
         ),
       ),
-      'civicrm_group' => array(
-        'dao' => 'CRM_Contact_DAO_Group',
-        'alias' => 'cgroup',
-        'filters' => array(
-          'gid' => array(
-            'name' => 'group_id',
-            'title' => ts('Group'),
-            'type' => CRM_Utils_Type::T_INT,
-            'group' => TRUE,
-            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
-            'options' => CRM_Core_PseudoConstant::staticGroup(),
-          ),
-        ),
-      ),
     );
 
+    $this->_groupFilter = TRUE;
     $this->_tagFilter = TRUE;
     parent::__construct();
   }