searching case insensitive for PostgreSQL too

This commit is contained in:
Ralf Becker 2010-06-22 16:59:04 +00:00
parent 95ac7e77be
commit a4ae9df347

View File

@ -345,7 +345,7 @@ class calendar_so
{
foreach(array('cal_title','cal_description','cal_location') as $col)
{
$to_or[] = $col . ' LIKE ' . $this->db->quote('%'.$params['query'].'%');
$to_or[] = $col.' '.$this->db->capabilities[egw_db::CAPABILITY_CASE_INSENSITIV_LIKE].' '.$this->db->quote('%'.$params['query'].'%');
}
$where[] = '('.implode(' OR ',$to_or).')';
}