From e972473ca7029c391070e30ff4d832591d96603b Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 11 Oct 2014 15:16:55 -0400 Subject: [PATCH] CRM-15443 - Exclude deceased contacts from EntityRef results --- api/v3/Contact.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/v3/Contact.php b/api/v3/Contact.php index 7bf53b9fd8..bd8656691d 100644 --- a/api/v3/Contact.php +++ b/api/v3/Contact.php @@ -976,6 +976,10 @@ function _civicrm_api3_contact_getlist_params(&$request) { if (!empty($request['input'])) { $request['params'][$request['search_field']] = $request['input']; } + // Exclude deceased contacts by default + if (!isset($request['params']['is_deceased'])) { + $request['params']['is_deceased'] = 0; + } } /** -- 2.25.1