Index: api/soap/mc_issue_api.php =================================================================== --- api/soap/mc_issue_api.php (revision 5416) +++ api/soap/mc_issue_api.php (working copy) @@ -234,7 +234,7 @@ $t_relationship = array(); $t_relationship['id'] = $t_relship_row->id; $t_reltype = array(); - $t_reltype['id'] = $t_relship_row->type; + $t_reltype['id'] = relationship_get_complementary_type($t_relship_row->type); $t_reltype['name'] = relationship_get_description_dest_side($t_relship_row->type); $t_relationship['type'] = $t_reltype; $t_relationship['target_id'] = $t_relship_row->src_bug_id; Index: config_defaults_inc.php =================================================================== --- config_defaults_inc.php (revision 5416) +++ config_defaults_inc.php (working copy) @@ -518,6 +518,11 @@ # Shows only top projects in the project dropdown and adds an extra dropdown for subprojects. $g_show_extended_project_browser = OFF; + # --- use optgroups in the project list instead of » --- + # Uses optgroups in the select list instead of manual spacing and » + # This allows for better navigating by keyboard through the select list + $g_show_project_optgroups = OFF; + # --- show assigned to names ------ # This is in the view all pages $g_show_assigned_names = ON; @@ -2021,4 +2026,4 @@ # Enables or disables the mind mapping features including ability to export Freemind files and # in browser view of generated mindmaps. - $g_mindmap_enabled = ON; \ No newline at end of file + $g_mindmap_enabled = ON; Index: core/print_api.php =================================================================== --- core/print_api.php (revision 5416) +++ core/print_api.php (working copy) @@ -493,6 +493,8 @@ array_push( $p_parents, $p_parent_id ); $t_project_ids = current_user_get_accessible_subprojects( $p_parent_id ); $t_project_count = count( $t_project_ids ); + $t_project_optgroups = config_get('show_project_optgroups'); + if ($t_project_optgroups && $t_project_count) PRINT ""; for ($i=0;$i<$t_project_count;$i++) { $t_full_id = $t_id = $t_project_ids[$i]; if ( $t_id != $p_filter_project_id ) { @@ -502,10 +504,12 @@ } PRINT "$t_full_id\""; check_selected( $p_project_id, $t_full_id ); - PRINT '>' . str_repeat( ' ', count( $p_parents ) ) . str_repeat( '»', count( $p_parents ) ) . ' ' . string_display( project_get_field( $t_id, 'name' ) ) . '' . "\n"; + $t_spacing = $t_project_optgroups ? "" : str_repeat( ' ', count( $p_parents ) ) . str_repeat( '»', count( $p_parents ) ). ' '; + PRINT '>' . $t_spacing . string_display( project_get_field( $t_id, 'name' ) ) . '' . "\n"; print_subproject_option_list( $t_id, $p_project_id, $p_filter_project_id, $p_trace, $p_parents ); } } + if ($t_project_optgroups && $t_project_count) PRINT ""; } # -------------------- # Print extended project browser