From 9e49a7b891cb6fcceb0cf63145393508835f9eb5 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Wed, 21 May 2014 19:17:28 +0530 Subject: [PATCH] CRM-14317-comment-fix --- CRM/Export/BAO/Export.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index 3e50de0669..8930ebe469 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -380,6 +380,12 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c } } + // rectify params to what proximity search expects if there is a value for prox_distance + // CRM-7021 + if (!empty($params)) { + CRM_Contact_BAO_ProximityQuery::fixInputParams($params); + } + $query = new CRM_Contact_BAO_Query($params, $returnProperties, NULL, FALSE, FALSE, $queryMode, FALSE, TRUE, TRUE, NULL, $queryOperator -- 2.25.1