View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0009519 | mantisbt | other | public | 2008-08-12 03:46 | 2009-01-15 11:25 |
| Reporter | pky | Assigned To | jreese | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.2.0a2 | ||||
| Target Version | 1.2.0a3 | Fixed in Version | 1.2.0a3 | ||
| Summary | 0009519: 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. | ||||
| Tags | No 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' );
| ||||
|
MantisBT: master c1b57471 2008-08-12 11:28 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 | ||