Index: view_all_set.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/view_all_set.php,v retrieving revision 1.37 diff -u -r1.37 view_all_set.php --- view_all_set.php 6 Aug 2004 15:38:38 -0000 1.37 +++ view_all_set.php 27 Oct 2004 00:57:44 -0000 @@ -99,6 +99,15 @@ $f_fixed_in_version = array( $f_fixed_in_version ); } + $f_show_priority = array(); + if ( is_array( gpc_get( 'show_priority', null ) ) ) { + $f_show_priority = gpc_get_string_array( 'show_priority', 'any' ); + } else { + $f_show_priority = gpc_get_string( 'show_priority', 'any' ); + $f_show_priority = array( $f_show_priority ); + } + + $f_user_monitor = array(); if ( is_array( gpc_get( 'user_monitor', null ) ) ) { $f_user_monitor = gpc_get_string_array( 'user_monitor', 'any' ); @@ -257,6 +266,7 @@ $t_setting_arr['show_version'] = $f_show_version; $t_setting_arr['do_filter_by_date'] = $f_do_filter_by_date; $t_setting_arr['fixed_in_version'] = $f_fixed_in_version; + $t_setting_arr['show_priority'] = $f_show_priority; $t_setting_arr['user_monitor'] = $f_user_monitor; $t_setting_arr['view_state'] = $f_view_state; $t_setting_arr['custom_fields'] = $f_custom_fields_data; @@ -289,6 +299,7 @@ $t_setting_arr['handler_id'] = array( "any" ); $t_setting_arr['show_build'] = array( "any" ); $t_setting_arr['show_version'] = array( "any" ); + $t_setting_arr['show_priority'] = array( "any" ); $t_setting_arr['fixed_in_version'] = array( "any" ); $t_setting_arr['user_monitor'] = array( "any" ); @@ -344,4 +355,4 @@ } else { print_header_redirect( $t_redirect_url ); } -?> \ No newline at end of file +?> Index: view_filters_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/view_filters_page.php,v retrieving revision 1.21 diff -u -r1.21 view_filters_page.php --- view_filters_page.php 12 Sep 2004 11:54:07 -0000 1.21 +++ view_filters_page.php 27 Oct 2004 00:57:44 -0000 @@ -263,7 +263,8 @@ - + + @@ -307,13 +308,21 @@ - + + + + + Index: core/filter_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/filter_api.php,v retrieving revision 1.59 diff -u -r1.59 filter_api.php --- core/filter_api.php 1 Oct 2004 02:41:25 -0000 1.59 +++ core/filter_api.php 27 Oct 2004 00:57:46 -0000 @@ -293,6 +293,27 @@ array_push( $t_where_clauses, '('. implode( ' OR ', $t_clauses ) .')' ); } + # priority + $t_any_found = false; + foreach( $t_filter['show_priority'] as $t_filter_member ) { + if ( 'any' == $t_filter_member ) { + $t_any_found = true; + } + } + if ( count( $t_filter['show_priority'] ) == 0 ) { + $t_any_found = true; + } + if ( !$t_any_found ) { + $t_clauses = array(); + + foreach( $t_filter['show_priority'] as $t_filter_member ) { + $c_show_priority = db_prepare_int( $t_filter_member ); + array_push( $t_clauses, "($t_bug_table.priority='$c_show_priority')" ); + } + array_push( $t_where_clauses, '('. implode( ' OR ', $t_clauses ) .')' ); + } + + # product build $t_any_found = false; foreach( $t_filter['show_build'] as $t_filter_member ) { @@ -654,13 +675,14 @@ $t_tdclass = 'small-caption'; $t_trclass = 'row-category2'; $t_action = 'view_all_set.php?f=3'; - + if ( $p_for_screen == false ) { $t_tdclass = 'print'; $t_trclass = ''; $t_action = 'view_all_set.php'; } -?> +?> +
@@ -675,7 +697,7 @@ - + : - + @@ -1097,7 +1122,7 @@ } ?> - + > @@ -1709,6 +1764,7 @@ 'reporter_id' => 'int', 'handler_id' => 'string', 'show_resolution' => 'int', + 'show_priority' => 'int', 'show_build' => 'string', 'show_version' => 'string', 'hide_status' => 'int',
+ : + : +
+ + '; + } else { + $t_first_flag = false; + } + $t_output = $t_output . $t_this_string; + } + if ( true == $t_any_found ) { + PRINT lang_get( 'any' ); + } else { + PRINT $t_output; + } + } + ?> +