Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dregad committed Jun 19, 2014
1 parent f1b5513 commit d345c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/filter_api.php
Expand Up @@ -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" ) .
Expand Down

0 comments on commit d345c5b

Please sign in to comment.