// and it decides when to use distinct based on input criteria, which needs
// to be fixed and optimized.
- $form->_contactIds = array_unique($allCids[$cacheKey]);
+ foreach ($allCids[$cacheKey] as $cid => $ignore) {
+ $form->_contactIds[] = $cid;
+ }
}
}
elseif (CRM_Utils_Array::value('radio_ts', self::$_searchFormValues) == 'ts_sel') {
$contactIds = array();
while ($dao->fetch()) {
- $contactIds[] = $dao->contact_id;
+ $contactIds[$dao->contact_id] = $dao->contact_id;
}
return $contactIds;