From becef5900c9927925c34ee9113215bb5b835d308 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 b3a03e9ff9..289a1e2e62 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);