View Issue Details

IDProjectCategoryView StatusLast Update
0010060mantisbtbugtrackerpublic2009-01-16 16:15
Reporterolegos Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version1.2.0a3 
Summary0010060: $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.

TagsNo tags attached.

Activities

There are no notes attached to this issue.