Fix unfiltered search results when searching with text customfields

This commit is contained in:
nathangray 2019-05-15 10:50:04 -06:00
parent edfd5fd24d
commit db3ad56011

View File

@ -420,7 +420,7 @@ class Storage extends Storage\Base
if (!$this->customfields) return ''; // no custom-fields --> no search
$sql = ' OR '.$this->table_name.'.'.$this->autoinc_id.' IN (SELECT '.$this->autoinc_id.
$sql = ' OR '.$this->table_name.'.'.$this->autoinc_id.' IN (SELECT '.$this->extra_id.
' FROM '.$this->extra_table.' WHERE '.$this->extra_value.' '.
$this->db->capabilities[Db::CAPABILITY_CASE_INSENSITIV_LIKE].' '.
$GLOBALS['egw']->db->quote($_pattern);