CRM-19184 remove old old old suppress group functionality by defining 'CIVICRM_GROUPTREE'
authoreileen <emcnaughton@wikimedia.org>
Sun, 1 Jan 2017 22:10:56 +0000 (11:10 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 16 Feb 2017 04:46:20 +0000 (17:46 +1300)
CRM/Contribute/Form/Search.php

index e4e2df3d840176cced48e190d5385bed53f984c6..14c3ace64a7742ab57533c369c984787740893f4 100644 (file)
@@ -297,20 +297,19 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search {
         }
       }
 
-      if (!defined('CIVICRM_GROUPTREE')) {
-        $group = CRM_Utils_Array::value('group', $this->_formValues);
-        if ($group && !is_array($group)) {
-          unset($this->_formValues['group']);
-          $this->_formValues['group'][$group] = 1;
-        }
+      $group = CRM_Utils_Array::value('group', $this->_formValues);
+      if ($group && !is_array($group)) {
+        unset($this->_formValues['group']);
+        $this->_formValues['group'][$group] = 1;
+      }
 
-        if ($group && is_array($group)) {
-          unset($this->_formValues['group']);
-          foreach ($group as $notImportant => $groupID) {
-            $this->_formValues['group'][$groupID] = 1;
-          }
+      if ($group && is_array($group)) {
+        unset($this->_formValues['group']);
+        foreach ($group as $groupID) {
+          $this->_formValues['group'][$groupID] = 1;
         }
       }
+
     }
 
     CRM_Core_BAO_CustomValue::fixCustomFieldValue($this->_formValues);