Fix case sensitive search on email when linking

This commit is contained in:
Nathan Gray 2013-05-06 15:20:11 +00:00
parent e8852dc8f3
commit 0917e21707

View File

@ -1448,7 +1448,7 @@ class addressbook_bo extends addressbook_so
$options['filter'] = (array)$options['filter'];
}
// return only contacts with email set
$options['filter'][] = "contact_email LIKE '%@%'";
$options['filter'][] = "contact_email ".$this->db->capabilities[egw_db::CAPABILITY_CASE_INSENSITIV_LIKE]." '%@%'";
// let link query know, to append email to list
$options['type'] = 'email';