allow for like wildcard.val.wildcard in filtersearch for customfields (needed for advanced search, as criteria are now remapped to be filters for customfields)

This commit is contained in:
Klaus Leithoff 2010-07-07 14:12:41 +00:00
parent 33f102ac0a
commit 4b4735cb80

View File

@ -553,6 +553,14 @@ class so_sql_cf extends so_sql
)) ))
); );
} }
elseif ($this->customfields[$this->get_cf_name($name)]['type'] == 'text')
{
$sql_filter = str_replace($this->extra_value,'extra_filter.'.$this->extra_value,
$this->db->expression($this->extra_table,array(
$this->extra_value.' '.$this->db->capabilities[egw_db::CAPABILITY_CASE_INSENSITIV_LIKE].' '.$this->db->quote($wildcard.$val.$wildcard)
))
);
}
else else
{ {
$sql_filter = str_replace($this->extra_value,'extra_filter.'. $sql_filter = str_replace($this->extra_value,'extra_filter.'.