//get the location name
list($tName, $fldName) = self::getLocationTableName($field['where'], $locType);
- // LOWER roughly translates to 'hurt my database without deriving any benefit' See CRM-19811.
- $fieldName = "LOWER(`$tName`.$fldName)";
+ $fieldName = "`$tName`.$fldName";
// we set both _tables & whereTables because whereTables doesn't seem to do what the name implies it should
$this->_tables[$tName] = $this->_whereTables[$tName] = 1;
}
else {
if ($op != 'IN' && !is_numeric($value) && !is_array($value)) {
- // LOWER roughly translates to 'hurt my database without deriving any benefit' See CRM-19811.
- $fieldName = "LOWER({$field['where']})";
+ $fieldName = "{$field['where']}";
}
else {
$fieldName = "{$field['where']}";
$value = "%{$value}%";
}
$op = 'LIKE';
- // LOWER roughly translates to 'hurt my database without deriving any benefit' See CRM-19811.
$this->_where[$grouping][] = self::buildClause('civicrm_address.street_address', $op, $value, 'String');
$this->_qill[$grouping][] = ts('Street') . " $op '$n'";
}
CRM_Core_Config::singleton()->defaultSearchProfileID = 1;
$this->callAPISuccess('address', 'create', array(
'contact_id' => $contactID,
- 'city' => 'Cool City',
- 'street_address' => 'Long Street',
+ 'city' => 'Cool CITY',
+ 'street_address' => 'Long STREET',
'location_type_id' => 1,
));
$returnProperties = array(
public function getSearchProfileData() {
return [
[
- [['city', '=', 'Cool City', 1, 0]], "civicrm_address.city as `city`", "LOWER(civicrm_address.city) = 'cool city'",
+ [['city', '=', 'Cool City', 1, 0]], "civicrm_address.city as `city`", "civicrm_address.city = 'cool city'",
],
[
// Note that in the query 'long street' is lower cased. We eventually want to change that & not mess with the vars - it turns out