----------------------------------------
* CRM-13029: search builder: unable to search activity details
http://issues.civicrm.org/jira/browse/CRM-13029
$value = CRM_Utils_Type::escape($value, $dataType);
// if we dont have a dataType we should assume
- if ($dataType == 'String') {
+ if ($dataType == 'String' || $dataType == 'Text') {
$value = "'" . strtolower($value) . "'";
}
return "$clause $value";
case 'String':
case 'Memo':
+ case 'Text':
return CRM_Core_DAO::escapeString($data);
case 'Date':