Details

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

      Description

      No data is returned by API calls to crm_get_group_contacts if $return_properties is not null.

      Appears to be related to the addition of $grpStatus in 1.6

      $grpStatus = "`civicrm_group_contact-$group->id`.status";

      $query = '';
      if ( empty($returnProperties) )

      { $query = "SELECT contact_a.id as contact_id, civicrm_email.email as email, $grpStatus as status"; //$query = "SELECT *,contact_a.id as contact_id, (talk to lobo before re-enabling this) //civicrm_email.email as email"; }

      else

      { //this is the problem line, remove " , $grpStatus as status" and it will return data. $query = "SELECT contact_a.id as contact_id , $grpStatus as status"; $query .= implode( ',', $returnProperties ); }

        Attachments

          Activity

            People

            • Assignee:
              sameermare Sameer Mare
              Reporter:
              rc dw
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: