View Issue Details

IDProjectCategoryView StatusLast Update
0009519mantisbtotherpublic2009-01-15 11:25
Reporterpky Assigned Tojreese  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0a2 
Target Version1.2.0a3Fixed in Version1.2.0a3 
Summary0009519: disabled projects; duplicate of 5514
Description

After disabling the project I couldn't find a way to enable it again.

Steps To Reproduce

Manage/ManageProjects, click on any project, unmark enabled and "update project".

Additional Information

I am proposing a fix to this problem.

TagsNo tags attached.
Attached Files
patch_disabled_projects.patch (788 bytes)   
Index: core/project_hierarchy_api.php
===================================================================
--- core/project_hierarchy_api.php	(revision 5505)
+++ core/project_hierarchy_api.php	(working copy)
@@ -112,10 +112,12 @@
 	# --------------------
 	function project_hierarchy_cache( $p_show_disabled = false ) {
 		global $g_cache_project_hierarchy, $g_cache_project_inheritance;
+		global $g_cache_show_disabled;
 
-		if ( !is_null( $g_cache_project_hierarchy ) ) {
+		if ( !is_null( $g_cache_project_hierarchy ) && ($g_cache_show_disabled == $p_show_disabled)) {
 			return;
 		}
+		$g_cache_show_disabled = $p_show_disabled;
 
 		$t_project_table			= db_get_table( 'mantis_project_table' );
 		$t_project_hierarchy_table	= db_get_table( 'mantis_project_hierarchy_table' );

Relationships

has duplicate 0009543 closedjreese Setting Project to "Disabled" and Project Dissappears 
has duplicate 0009734 closedjreese inactive Projects are not visible 

Activities

jreese

jreese

2008-08-12 11:30

reporter   ~0019126

Change committed to SVN trunk, r5507. Thank you for finding this problem and providing the solution. Much appreciated.

Related Changesets

MantisBT: master c1b57471

2008-08-12 11:28

jreese


Details Diff
Fix 0009519: no way to re-enable disabled projects.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5507 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0009519
mod - core/project_hierarchy_api.php Diff File