CRM-14317-comment-fix
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Wed, 21 May 2014 13:47:28 +0000 (19:17 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Wed, 21 May 2014 13:47:28 +0000 (19:17 +0530)
CRM/Export/BAO/Export.php

index 3e50de066968bf2de27511fa120b00af7dcb823f..8930ebe46911c21c7576c0ffee19549c1cf9c02c 100644 (file)
@@ -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