From d345c5b80bed549c4dd88b868349ace305847e6c Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Thu, 19 Jun 2014 22:35:11 +0200 Subject: [PATCH] Filter API: add missing table prefix When building the where clause for free-text search, the filter API did not prefix the 'summary' column with the table name. Fixes #17457 --- core/filter_api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/filter_api.php b/core/filter_api.php index a887854cfb..7ec33d7464 100644 --- a/core/filter_api.php +++ b/core/filter_api.php @@ -1969,7 +1969,7 @@ function filter_get_bug_rows( &$p_page_number, &$p_per_page, &$p_page_count, &$p } $c_search = '%' . $t_search_term . '%'; - $t_textsearch_where_clause .= '( ' . db_helper_like( 'summary' ) . + $t_textsearch_where_clause .= '( ' . db_helper_like( "$t_bug_table.summary" ) . ' OR ' . db_helper_like( "$t_bug_text_table.description" ) . ' OR ' . db_helper_like( "$t_bug_text_table.steps_to_reproduce" ) . ' OR ' . db_helper_like( "$t_bug_text_table.additional_information" ) .