CRM-1930 crm_search_count does not do group search correctly

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      A group search will ignore an additional search parameter, returning only the number of members of the group:

      Ex.: suppose group #1 contains 100 members, that contact_id = 63 is a member of 1, and that contact_id = 963 is not a member.

      Then,
      for $params = array(array('group' => array('1' => 1)), 'contact_id' => 63), crm_search_count($params) should return 1, and
      for $params = array(array('group' => array('1' => 1)), 'contact_id' => 963), crm_search_count($params) should return 0.

      In 1.7/r9284, it appears that crm_search_contact is returning 100 in both cases.

        Attachments

          Activity

          [CRM-1930] crm_search_count does not do group search correctly
          Donald A. Lobo added a comment -

          Rob:

          check:

          http://fisheye.civicrm.org/browse/CiviCRM/trunk/test/CRM/api/CRM1930.php?r=9613

          you are using the new api with an old parameter format. so i'd switch the call orchange the api parameter format

          Manish Zope added a comment -

          Verify for 2.0

            People

            • Assignee:
              Sunil Pawar
              Reporter:
              Rob Thorne

              Dates

              • Created:
                Updated:
                Resolved: