From 247ad91113df942102b60e1ca59620bf46a12009 Mon Sep 17 00:00:00 2001 From: kurund Date: Tue, 22 Apr 2014 15:07:10 -0700 Subject: [PATCH] typo fixes, CRM-14463 ---------------------------------------- * CRM-14463: Custom address fields can't search by location type https://issues.civicrm.org/jira/browse/CRM-14463 --- CRM/Core/BAO/CustomQuery.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CRM/Core/BAO/CustomQuery.php b/CRM/Core/BAO/CustomQuery.php index 1576408d10..60ac3c23f4 100644 --- a/CRM/Core/BAO/CustomQuery.php +++ b/CRM/Core/BAO/CustomQuery.php @@ -102,7 +102,7 @@ class CRM_Core_BAO_CustomQuery { */ protected $_contactSearch; - protected $_locationSpecifiCustomFields; + protected $_locationSpecificCustomFields; /** * This stores custom data group types and tables that it extends @@ -140,7 +140,7 @@ class CRM_Core_BAO_CustomQuery { */ function __construct($ids, $contactSearch = FALSE, $locationSpecificFields = array()) { $this->_ids = &$ids; - $this->_locationSpecifiCustomFields = $locationSpecificFields; + $this->_locationSpecificCustomFields = $locationSpecificFields; $this->_select = array(); $this->_element = array(); @@ -307,8 +307,8 @@ SELECT label, value $joinClause = 1; $joinTableAlias = $joinTable; // Set location-specific query - if (isset($this->_locationSpecifiCustomFields[$id])) { - list($locationType, $locationTypeId) = $this->_locationSpecifiCustomFields[$id]; + if (isset($this->_locationSpecificCustomFields[$id])) { + list($locationType, $locationTypeId) = $this->_locationSpecificCustomFields[$id]; $joinTableAlias = "$locationType-address"; $joinClause = "\nLEFT JOIN $joinTable `$locationType-address` ON (`$locationType-address`.contact_id = contact_a.id AND `$locationType-address`.location_type_id = $locationTypeId)"; } @@ -665,4 +665,3 @@ SELECT label, value } } } - -- 2.25.1