diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 083b643c5b7..fe66fcd74bb 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -2305,12 +2305,7 @@ public function restWhere(&$values) { $fieldName = "contact_a.{$fieldName}"; } else { - if ($op != 'IN' && !is_numeric($value) && !is_array($value)) { - $fieldName = "{$field['where']}"; - } - else { - $fieldName = "{$field['where']}"; - } + $fieldName = $field['where']; } }