From: <gi...@ma...> - 2009-12-21 15:23:34
|
The branch, master has been updated via bd9fa3cff99182052840b7cd796d68b5b092ed2a (commit) from 4491908ade4973388c80c65ffe527bee2b97e013 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit bd9fa3cff99182052840b7cd796d68b5b092ed2a Author: John Reese <jr...@le...> Date: Fri Dec 18 20:47:40 2009 -0500 Fix edge cases with search terms ----------------------------------------------------------------------- Summary of changes: core/filter_api.php | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) ----------------------------------------------------------------------- commit bd9fa3cff99182052840b7cd796d68b5b092ed2a Author: John Reese <jr...@le...> Date: Fri Dec 18 20:47:40 2009 -0500 Fix edge cases with search terms diff --git a/core/filter_api.php b/core/filter_api.php index 1570639..37783ae 100644 --- a/core/filter_api.php +++ b/core/filter_api.php @@ -1966,11 +1966,13 @@ function filter_get_bug_rows( &$p_page_number, &$p_per_page, &$p_page_count, &$p $t_textsearch_where_clause .= ' )'; # add text query elements to arrays - $t_from_clauses[] = "$t_bug_text_table"; - $t_where_clauses[] = "$t_bug_table.bug_text_id = $t_bug_text_table.id"; - $t_where_clauses[] = $t_textsearch_where_clause; - $t_join_clauses[] = " LEFT JOIN $t_bugnote_table ON $t_bug_table.id = $t_bugnote_table.bug_id"; - $t_join_clauses[] = " LEFT JOIN $t_bugnote_text_table ON $t_bugnote_table.bugnote_text_id = $t_bugnote_text_table.id"; + if ( !$t_first ) { + $t_from_clauses[] = "$t_bug_text_table"; + $t_where_clauses[] = "$t_bug_table.bug_text_id = $t_bug_text_table.id"; + $t_where_clauses[] = $t_textsearch_where_clause; + $t_join_clauses[] = " LEFT JOIN $t_bugnote_table ON $t_bug_table.id = $t_bugnote_table.bug_id"; + $t_join_clauses[] = " LEFT JOIN $t_bugnote_text_table ON $t_bugnote_table.bugnote_text_id = $t_bugnote_text_table.id"; + } } # End text search ----------------------------------------------------------------------- -- Mantis Bug Tracker |