Add more search option for email
authoryashodha <yashodha@cividesk.com>
Wed, 27 Sep 2023 07:43:28 +0000 (13:13 +0530)
committeryashodha <yashodha@cividesk.com>
Wed, 27 Sep 2023 07:43:28 +0000 (13:13 +0530)
CRM/Contact/BAO/Contact.php

index b9b83e95d81992b0a0dbac22b12fb2978609c747..44b20e78e166fe9aca19abd51b44f243122c1bd0 100644 (file)
@@ -3581,6 +3581,7 @@ LEFT JOIN civicrm_address ON ( civicrm_address.contact_id = civicrm_contact.id )
   public static function getEntityRefFilters() {
     return [
       ['key' => 'contact_type', 'value' => ts('Contact Type')],
+      ['key' => 'email', 'value' => ts('Email'), 'entity' => 'Email', 'type' => 'text'],
       ['key' => 'group', 'value' => ts('Group'), 'entity' => 'GroupContact'],
       ['key' => 'tag', 'value' => ts('Tag'), 'entity' => 'EntityTag'],
       ['key' => 'city', 'value' => ts('City'), 'type' => 'text', 'entity' => 'Address'],