Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Blocker
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.4
-
Fix Version/s: 1.4
-
Component/s: Technical infrastructure
-
Labels:None
Description
The following code is returning 42 contacts, rather than the 14 the group really has:
<p>This bug involves a group on this site returning contacts in triplicate. Group 15 in reality has 14 members. crm_group_contacts is returning the records in triplicate</p>
<?php
if (function_exists('civicrm_initialize'))
{ civicrm_initialize(TRUE); echo "CRM is initialized <br />"; echo "Get group 15...<br />"; $group = crm_get_groups(array('id' => 15)); echo "<pre>"; print_r($group); echo "</pre>"; echo "<br /><br />Get the contacts for this group<br />"; $contacts = crm_get_group_contacts($group[0], NULL, //default instead 'Added', NULL, //status and sort 0,10000); //up to first 10K records echo "Returned " . count($contacts) . " in all<br />"; }else
{ echo "Could not initialize CRM<br />"; }?>
The site is http://beta.torenware.com, and I have this set up at http://beta.torenware.com/node/55. Lobo has admin access to the site.
The site is using rev. 4915, and the CRM group was created via the CRM UI.