From ffeb940d7be14c7b8d820d84d1a83291be03861c Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 29 May 2020 09:45:44 +1200 Subject: [PATCH] Add more search fields for contacts - city, postal_code, street_address --- CRM/Contact/BAO/Contact.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index 304a554e3b..d795677303 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -3718,9 +3718,8 @@ LEFT JOIN civicrm_address ON ( civicrm_address.contact_id = civicrm_contact.id ) ['key' => 'contact_type', 'value' => ts('Contact Type')], ['key' => 'group', 'value' => ts('Group'), 'entity' => 'GroupContact'], ['key' => 'tag', 'value' => ts('Tag'), 'entity' => 'EntityTag'], - ['key' => 'city', 'value' => ts('City'), 'entity' => 'Address'], - ['key' => 'street_address', 'value' => ts('Street Address'), 'entity' => 'Address'], - ['key' => 'postal_code', 'value' => ts('Postal Code'), 'entity' => 'Address'], + ['key' => 'city', 'value' => ts('City'), 'type' => 'text', 'entity' => 'Address'], + ['key' => 'postal_code', 'value' => ts('Postal Code'), 'type' => 'text', 'entity' => 'Address'], ['key' => 'state_province', 'value' => ts('State/Province'), 'entity' => 'Address'], ['key' => 'country', 'value' => ts('Country'), 'entity' => 'Address'], ['key' => 'first_name', 'value' => ts('First Name'), 'type' => 'text', 'condition' => ['contact_type' => 'Individual']], -- 2.25.1