View Issue Details

IDProjectCategoryView StatusLast Update
0006637mantisbtadministrationpublic2006-09-23 02:48
Reportermotobass Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0rc5 
Fixed in Version1.1.0a1 
Summary0006637: Disabled projects don't appear under parent project
Description

On manage_proj_edit_page.php, the parent project's disabled subprojects are not listed as Subprojects and they appear in the 'Add as subproject' dropdown.

Steps To Reproduce

Go to manage a project with disabled subprojects.

TagsNo tags attached.

Relationships

parent of 0007467 closedvboctor Port 6637: Disabled projects don't appear under parent project 
has duplicate 0006708 closedvboctor Inactive Subprojects don't shwo 

Activities

motobass

motobass

2006-02-17 10:55

reporter   ~0012179

This is true in the 1.0.0 release as well.

vboctor

vboctor

2006-03-21 07:50

manager   ~0012392

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