Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 925af0a

Browse files
committedSep 22, 2012
filter_api: replace implicit join with left join
Fixes #6809: 0005598: Using an 'Or' filter logic
1 parent 6ec3f69 commit 925af0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎core/filter_api.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -1800,8 +1800,7 @@ function filter_get_bug_rows( &$p_page_number, &$p_per_page, &$p_page_count, &$p
18001800
if( !filter_field_is_any( $t_filter[FILTER_PROPERTY_NOTE_USER_ID] ) ) {
18011801
$t_bugnote_table_alias = 'mbnt';
18021802
$t_clauses = array();
1803-
array_push( $t_from_clauses, "$t_bugnote_table $t_bugnote_table_alias" );
1804-
array_push( $t_where_clauses, "( $t_bug_table.id = $t_bugnote_table_alias.bug_id )" );
1803+
array_push( $t_join_clauses, "LEFT JOIN $t_bugnote_table $t_bugnote_table_alias ON $t_bug_table.id = $t_bugnote_table_alias.bug_id" );
18051804

18061805
foreach( $t_filter[FILTER_PROPERTY_NOTE_USER_ID] as $t_filter_member ) {
18071806
$c_note_user_id = db_prepare_int( $t_filter_member );

0 commit comments

Comments
 (0)
Please sign in to comment.