MantisBT: master-2.26 0c73e36e

Author Committer Branch Timestamp Parent
dregad dregad master-2.26 2024-09-06 18:00 master-2.26 096f2f7f
Affected Issues  0034526: Bad performance when editing a project having a lot of subprojects
 0034618: Disabled projects are not listed on page manage_proj_page.php
 0034768: 'INTERNAL APPLICATION ERROR' editing some projects from manage_proj_page.php
Changeset

Fix disabled projets' inclusion in hierarchy cache

The logic to check $p_show_disabled using is_null() was incorrect,
causing disabled projects to be excluded from the cache when the param's
value true.

This resulted in disabled project not being listed on Manage Projects
Page. Changing code to perform a boolean test fixes the problem.

Regression introduced by 5ff35d16e85c1aa58cc80fea260cd0f3cfc39910
(issue 0034526).

Fixes 0034618

mod - core/project_hierarchy_api.php Diff File