typo fixes, CRM-14463
authorkurund <kurund@civicrm.org>
Tue, 22 Apr 2014 22:07:10 +0000 (15:07 -0700)
committerkurund <kurund@civicrm.org>
Tue, 22 Apr 2014 22:07:10 +0000 (15:07 -0700)
----------------------------------------
* CRM-14463: Custom address fields can't search by location type
  https://issues.civicrm.org/jira/browse/CRM-14463

CRM/Core/BAO/CustomQuery.php

index 1576408d1095027141de8b7466bf959b0860cdf3..60ac3c23f406320a941b43bbb2a94dfddddfbfb9 100644 (file)
@@ -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
     }
   }
 }
-