}
$result = array($id, 'IN', $values, 0, 0);
}
+ elseif ($id == 'contact_type') {
+ $result = array($id, 'IN', $values, 0, $wildcard);
+ }
else {
$result = array($id, '=', $values, 0, $wildcard);
}
// fix for CRM-771
if (!empty($clause)) {
+ $quill = $clause;
if ($op == 'IN' || $op == 'NOT IN') {
$this->_where[$grouping][] = "contact_a.contact_type $op (" . implode(',', $clause) . ')';
}
else {
- $quill = $clause;
$type = array_pop($clause);
$this->_where[$grouping][] = "contact_a.contact_type $op $type";
}