From 39b83794447dacb57899a1074d91dfe1c575bb3f Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 11 Sep 2017 11:46:47 +0530 Subject: [PATCH 1/2] CRM-21170 - Provide option to filter by contact id & external id --- CRM/Core/Resources.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Core/Resources.php b/CRM/Core/Resources.php index 68a2a7fde702..563651a14406 100644 --- a/CRM/Core/Resources.php +++ b/CRM/Core/Resources.php @@ -833,6 +833,8 @@ public static function getEntityRefFilters() { ); $filters['contact'] = array( + array('key' => 'contact_id', 'value' => ts('Contact ID'), 'type' => 'text'), + array('key' => 'external_identifier', 'value' => ts('External ID'), 'type' => 'text'), array('key' => 'contact_type', 'value' => ts('Contact Type')), array('key' => 'group', 'value' => ts('Group'), 'entity' => 'group_contact'), array('key' => 'tag', 'value' => ts('Tag'), 'entity' => 'entity_tag'), From eee1322ee4f5b9200217a81900b13793524f59d3 Mon Sep 17 00:00:00 2001 From: colemanw Date: Tue, 19 Sep 2017 19:41:08 -0400 Subject: [PATCH 2/2] Update Resources.php --- CRM/Core/Resources.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Resources.php b/CRM/Core/Resources.php index 563651a14406..f8c00772ae59 100644 --- a/CRM/Core/Resources.php +++ b/CRM/Core/Resources.php @@ -833,8 +833,6 @@ public static function getEntityRefFilters() { ); $filters['contact'] = array( - array('key' => 'contact_id', 'value' => ts('Contact ID'), 'type' => 'text'), - array('key' => 'external_identifier', 'value' => ts('External ID'), 'type' => 'text'), array('key' => 'contact_type', 'value' => ts('Contact Type')), array('key' => 'group', 'value' => ts('Group'), 'entity' => 'group_contact'), array('key' => 'tag', 'value' => ts('Tag'), 'entity' => 'entity_tag'), @@ -842,6 +840,8 @@ public static function getEntityRefFilters() { array('key' => 'country', 'value' => ts('Country'), 'entity' => 'address'), array('key' => 'gender_id', 'value' => ts('Gender')), array('key' => 'is_deceased', 'value' => ts('Deceased')), + array('key' => 'contact_id', 'value' => ts('Contact ID'), 'type' => 'text'), + array('key' => 'external_identifier', 'value' => ts('External ID'), 'type' => 'text'), array('key' => 'source', 'value' => ts('Contact Source'), 'type' => 'text'), );