From: eileen Date: Thu, 28 May 2020 21:45:44 +0000 (+1200) Subject: Add more search fields for contacts - city, postal_code, street_address X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ffeb940d7be14c7b8d820d84d1a83291be03861c;p=civicrm-core.git Add more search fields for contacts - city, postal_code, street_address --- 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']],