*/
protected $_contactSearch;
- protected $_locationSpecifiCustomFields;
+ protected $_locationSpecificCustomFields;
/**
* This stores custom data group types and tables that it extends
*/
function __construct($ids, $contactSearch = FALSE, $locationSpecificFields = array()) {
$this->_ids = &$ids;
- $this->_locationSpecifiCustomFields = $locationSpecificFields;
+ $this->_locationSpecificCustomFields = $locationSpecificFields;
$this->_select = array();
$this->_element = array();
$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)";
}
}
}
}
-