CRM-13554 - validate values of order by
[civicrm-core.git] / CRM / Contact / Form / GroupContact.php
index ba7ec81bed680a2fc8ec05b70452d1b107c8f5bd..88325ee09e70edf6a4963a696fb62268e81b84e8 100644 (file)
@@ -59,29 +59,6 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form {
     $this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
   }
 
-  /**
-   * This function sets the default values for the form. GroupContact that in edit/view mode
-   * the default values are retrieved from the database
-   *
-   * @access public
-   *
-   * @return None
-   */
-  function setDefaultValues() {
-    $defaults = array();
-    $params = array();
-
-    return $defaults;
-  }
-
-  /**
-   * This function is used to add the rules for form.
-   *
-   * @return None
-   * @access public
-   */
-  function addRules() {}
-
   /**
    * Function to build the form
    *
@@ -99,9 +76,7 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form {
     }
 
     // Arrange groups into hierarchical listing (child groups follow their parents and have indentation spacing in title)
-    $ids = implode(',', array_keys($allGroups));
-    $ids = 'IN (' . $ids . ')';
-    $groupHierarchy = CRM_Contact_BAO_Group::getGroupsHierarchy($ids, NULL, '  ', TRUE);
+    $groupHierarchy = CRM_Contact_BAO_Group::getGroupsHierarchy($allGroups, NULL, '  ', TRUE);
 
     // get the list of groups contact is currently in ("Added") or unsubscribed ("Removed").
     $currentGroups = CRM_Contact_BAO_GroupContact::getGroupList($this->_contactId);