Index: view_all_set.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/view_all_set.php,v retrieving revision 1.38 diff -u -r1.38 view_all_set.php --- view_all_set.php 28 Oct 2004 00:31:05 -0000 1.38 +++ view_all_set.php 13 Jan 2005 15:34:11 -0000 @@ -146,6 +146,9 @@ } } } + + $f_relationship_type = gpc_get_string( 'relationship_type', 'any' ); + $f_relationship_bug = gpc_get_string( 'relationship_bug', 0 ); if ( $f_temp_filter ) { $f_type = 1; @@ -202,6 +205,9 @@ 22: $f_show_version 23: $f_do_filter_by_date 24: $f_custom_field + 25: $f_relationship_type + 26: $f_relationship_bug + */ # Set new filter values. These are stored in a cookie $t_view_all_cookie_id = gpc_get_cookie( config_get( 'view_all_cookie' ), '' ); @@ -270,6 +276,8 @@ $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; + $t_setting_arr['relationship_type'] = $f_relationship_type; + $t_setting_arr['relationship_bug'] = $f_relationship_bug; break; # Set the sort order and direction @@ -302,6 +310,9 @@ $t_setting_arr['show_priority'] = array( "any" ); $t_setting_arr['fixed_in_version'] = array( "any" ); $t_setting_arr['user_monitor'] = array( "any" ); + $t_setting_arr['relationship_type'] = "any"; + $t_setting_arr['relationship_bug'] = 0; + $t_custom_fields = custom_field_get_ids(); $t_custom_fields_data = array(); Index: view_filters_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/view_filters_page.php,v retrieving revision 1.22 diff -u -r1.22 view_filters_page.php --- view_filters_page.php 28 Oct 2004 00:31:06 -0000 1.22 +++ view_filters_page.php 13 Jan 2005 15:03:15 -0000 @@ -11,6 +11,7 @@ require_once( $t_core_path.'compress_api.php' ); require_once( $t_core_path.'filter_api.php' ); + require_once( $t_core_path.'relationship_api.php' ); require_once( $t_core_path.'current_user_api.php' ); require_once( $t_core_path.'bug_api.php' ); require_once( $t_core_path.'string_api.php' ); @@ -329,13 +330,14 @@ - + /> + @@ -363,7 +365,7 @@ - + @@ -423,6 +425,17 @@
+ + + + + + : - + : + + : + + $t_filter_cols ) { echo ' '; @@ -1290,7 +1315,7 @@ - + + + + + + + + + $t_filter_cols ) { echo ' '; @@ -1849,7 +1893,7 @@ 'show_version' => 'string', 'hide_status' => 'int', 'fixed_in_version' => 'string', - 'user_monitor' => 'int' ); + 'user_monitor' => 'int'); foreach( $t_multi_select_list as $t_multi_field_name => $t_multi_field_type ) { if ( !isset( $p_filter_arr[$t_multi_field_name] ) ) { if ( 'hide_status' == $t_multi_field_name ) { @@ -1894,7 +1938,6 @@ } } # all of our filter values are now guaranteed to be there, and correct. - return $p_filter_arr; } ?> Index: core/relationship_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/relationship_api.php,v retrieving revision 1.27 diff -u -r1.27 relationship_api.php --- core/relationship_api.php 30 Nov 2004 12:17:04 -0000 1.27 +++ core/relationship_api.php 13 Jan 2005 14:16:02 -0000 @@ -678,9 +678,18 @@ # -------------------- # print HTML relationship listbox - function relationship_list_box( $p_default_rel_type = -1 ) { + function relationship_list_box( $p_default_rel_type = -1, $p_select_name = "rel_type", $p_include_any = false) { +?> +