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) )
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 ); }