From: Glenn H. <thr...@us...> - 2005-06-17 21:28:05
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8209/core Modified Files: html_api.php Log Message: project menu wasn't generating project traces for selecting subprojects Index: html_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/html_api.php,v retrieving revision 1.171 retrieving revision 1.172 diff -u -d -r1.171 -r1.172 --- html_api.php 16 Jun 2005 13:26:41 -0000 1.171 +++ html_api.php 17 Jun 2005 21:27:55 -0000 1.172 @@ -555,7 +555,7 @@ foreach ( $t_project_ids as $t_id ) { PRINT " | <a href=\"set_project.php?project_id=$t_id\">" . string_display( project_get_field( $t_id, 'name' ) ) . '</a>'; - print_subproject_menu_bar( $t_id ); + print_subproject_menu_bar( $t_id, $t_id . ';' ); } PRINT '</td>'; @@ -565,12 +565,12 @@ # -------------------- # Print the menu bar with a list of projects to which the user has access - function print_subproject_menu_bar( $p_project_id ) { + function print_subproject_menu_bar( $p_project_id, $p_parents = '' ) { $t_subprojects = current_user_get_accessible_subprojects( $p_project_id ); $t_char = ':'; foreach ( $t_subprojects as $t_subproject ) { - PRINT "$t_char <a href=\"set_project.php?project_id=$t_subproject\">" . string_display( project_get_field( $t_subproject, 'name' ) ) . '</a>'; - print_subproject_menu_bar( $t_subproject ); + PRINT "$t_char <a href=\"set_project.php?project_id=$p_parents$t_subproject\">" . string_display( project_get_field( $t_subproject, 'name' ) ) . '</a>'; + print_subproject_menu_bar( $t_subproject, $p_parents . $t_subproject . ';' ); $t_char = ','; } } |