|
|
Fixed in CVS. Will be included in Mantis 1.1.0.
Index: manage_proj_edit_page.php
RCS file: /cvsroot/mantisbt/mantisbt/manage_proj_edit_page.php,v
retrieving revision 1.93
diff -u -r1.93 manage_proj_edit_page.php
--- manage_proj_edit_page.php 1 Jan 2006 02:56:39 -0000 1.93
+++ manage_proj_edit_page.php 21 Mar 2006 12:49:43 -0000
@@ -164,7 +164,7 @@
<!-- Subprojects -->
<?php
- $t_subproject_ids = current_user_get_accessible_subprojects( $f_project_id );
-
$t_subproject_ids = current_user_get_accessible_subprojects( $f_project_id, / show_disabled / true );
if ( Array() != $t_subproject_ids ) {
?>
@@ -229,7 +229,7 @@
<input type="hidden" name="project_id" value="<?php echo $f_project_id ?>" />
<select name="subproject_id">
<?php
- $t_all_subprojects = project_hierarchy_get_subprojects( $f_project_id );
- $t_all_subprojects = project_hierarchy_get_subprojects( $f_project_id, / $p_show_disabled / true );
$t_all_subprojects[] = $f_project_id;
$t_manage_access = config_get( 'manage_project_threshold' );
Index: core/current_user_api.php
RCS file: /cvsroot/mantisbt/mantisbt/core/current_user_api.php,v
retrieving revision 1.28
diff -u -r1.28 current_user_api.php
--- core/current_user_api.php 27 Apr 2005 13:31:06 -0000 1.28
+++ core/current_user_api.php 21 Mar 2006 12:47:41 -0000
@@ -61,14 +61,14 @@
--------------------
# Return an array of projects to which the currently logged in user
# has access
- function current_user_get_accessible_projects() {
- return user_get_accessible_projects( auth_get_current_user_id() );
- function current_user_get_accessible_projects( $p_show_disabled = false ) {
- return user_get_accessible_projects( auth_get_current_user_id(), $p_show_disabled );
}
--------------------
Return an array of subprojects of the specified project to which the
currently logged in user has access
- function current_user_get_accessible_subprojects( $p_project_id ) {
- return user_get_accessible_subprojects( auth_get_current_user_id(), $p_project_id );
- function current_user_get_accessible_subprojects( $p_project_id, $p_show_disabled = false ) {
- return user_get_accessible_subprojects( auth_get_current_user_id(), $p_project_id, $p_show_disabled );
}
--------------------
Return an array of subprojects of the specified project to which the
|