From db3ad560114e62ca64188ee0a478d076a2d829c0 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 15 May 2019 10:50:04 -0600 Subject: [PATCH] Fix unfiltered search results when searching with text customfields --- api/src/Storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Storage.php b/api/src/Storage.php index dda50433d1..04e348887b 100644 --- a/api/src/Storage.php +++ b/api/src/Storage.php @@ -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);