From a5175a12a61eac6cfb360482557b91ae95ce38d8 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Thu, 18 Apr 2013 16:29:18 -0700 Subject: [PATCH] CRM-12368 ---------------------------------------- * CRM-12368: proximity search via advanced search broken http://issues.civicrm.org/jira/browse/CRM-12368 --- CRM/Contact/BAO/ProximityQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/ProximityQuery.php b/CRM/Contact/BAO/ProximityQuery.php index 1340c5e91e..19b58250d7 100644 --- a/CRM/Contact/BAO/ProximityQuery.php +++ b/CRM/Contact/BAO/ProximityQuery.php @@ -296,7 +296,7 @@ $earthDistanceSQL <= $distance if (isset($proximityAddress['state_province_id'])) { $proximityAddress['country_id'] = CRM_Core_PseudoConstant::countryForState($proximityAddress['state_province_id']); } - else { + elseif (isset($config->defaultContactCountry)) { $proximityAddress['country_id'] = $config->defaultContactCountry; } } -- 2.25.1