mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +01:00
searching case insensitive for PostgreSQL too
This commit is contained in:
parent
95ac7e77be
commit
a4ae9df347
@ -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).')';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user