Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-562

crm_get_group_contacts returns all contacts in all groups

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None

      Description

      Doing something like:
      $params = array('id'=>1);
      $groups = crm_get_groups($params);
      $myGroup = $groups[0];
      $list = crm_get_group_contacts($myGroup);

      Returns an array of all contacts with an entry in the table `civicrm_group_contact`, irrespective of whether the contact is in the particular group.

      Running Drupal version of CiviCRM 1.2Rev3721/PHP 4.3.10/MySql 4.1.11

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              krabi Peter Cruickshank
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: