From a217c342993c1d30d70fbe9e7e349e7acc7e6336 Mon Sep 17 00:00:00 2001 From: Chris Fitch Date: Thu, 19 Nov 2009 13:19:30 -0500 Subject: [PATCH] Make all projects filter include subprojects diff --git a/core/filter_api.php b/core/filter_api.php index 771b079..36a2421 100644 --- a/core/filter_api.php +++ b/core/filter_api.php @@ -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 ) ) || in_array( ALL_PROJECTS, $t_project_ids ) ); } log_event( LOG_FILTERING, 'project_ids = @P' . implode( ', @P', $t_project_ids ) ); -- 1.6.0.4