diff --git a/src/ContactComponent.php b/src/ContactComponent.php index 154aff580..3069a65de 100644 --- a/src/ContactComponent.php +++ b/src/ContactComponent.php @@ -142,6 +142,9 @@ function wf_crm_contact_search($node, $element, $params, $contacts, $str = NULL) if ($str) { $searchFields = []; foreach ($display_fields as $fld) { + if ($fld == 'id' && !is_numeric($str)) { + continue; + } $searchFields[] = [$fld, 'CONTAINS', $str]; } $params['where'][] = ['OR', $searchFields];