Skip to content

Commit

Permalink
Fix #12286: Sub projects not included in advanced filter ALL PROJECTS
Browse files Browse the repository at this point in the history
When advanced filter "Project" is set to "All Projects" sub projects are
excluded from the results returned by the filter. These sub projects
should be included.

Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
  • Loading branch information
djuntgen authored and davidhicks committed Sep 18, 2010
1 parent 3536e18 commit d1a7972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/filter_api.php
Expand Up @@ -1107,7 +1107,7 @@ function filter_get_bug_rows( &$p_page_number, &$p_per_page, &$p_page_count, &$p
$t_project_ids = array_map( 'db_prepare_int', $t_filter[FILTER_PROPERTY_PROJECT_ID] );
}

$t_include_sub_projects = (( count( $t_project_ids ) == 1 ) && ( $t_project_ids[0] == META_FILTER_CURRENT ) );
$t_include_sub_projects = (( count( $t_project_ids ) == 1 ) && ( ( $t_project_ids[0] == META_FILTER_CURRENT ) || ( $t_project_ids[0] == ALL_PROJECTS ) ) );
}

log_event( LOG_FILTERING, 'project_ids = @P' . implode( ', @P', $t_project_ids ) );
Expand Down

0 comments on commit d1a7972

Please sign in to comment.