Revision: 5507
http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5507&view=rev
Author: nuclear_eclipse
Date: 2008-08-12 15:28:23 +0000 (Tue, 12 Aug 2008)
Log Message:
-----------
Fix #9519: no way to re-enable disabled projects.
Modified Paths:
--------------
trunk/mantisbt/core/project_hierarchy_api.php
Modified: trunk/mantisbt/core/project_hierarchy_api.php
===================================================================
--- trunk/mantisbt/core/project_hierarchy_api.php 2008-08-12 13:54:21 UTC (rev 5506)
+++ trunk/mantisbt/core/project_hierarchy_api.php 2008-08-12 15:28:23 UTC (rev 5507)
@@ -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' );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|