View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010060 | mantisbt | bugtracker | public | 2009-01-16 16:15 | 2009-01-16 16:15 |
Reporter | olegos | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 1.2.0a3 | ||||
Summary | 0010060: $g_project_override doesn't work | ||||
Description | $g_project_override is used in many places to switch current project from the one selected by the user to that of the current bug. However, the current project is also cached in $g_cache_config_project which prevents $g_project_override from being used. See 0009831:0020616. This leads to bugs such as 0009831, and many more that are yet unreported (see "grep --color -C 2 'g_project_override =' *.php"). | ||||
Additional Information | I think the best fix is to call config_flush_cache() every time $g_project_override is set (as is already done in bug_actiongroup.php, except that config_flush_cache() currently doesn't clear $g_cache_config_project), and make it clear $g_cache_config_project. These two actions should probably be encapsulated in a function, in case a better idea comes along later. When this bug is fixed, the current fix for 0009831 should be reverted. | ||||
Tags | No tags attached. | ||||