MantisBT: master f310ad92

Author Committer Branch Timestamp Parent
dregad dregad master 2011-12-15 03:21 master 297c7930
Affected Issues  0013683: Unchanged workflow settings highlighted as overridden
Changeset

Inconsistent config_eval behavior with global configs

When config_eval() is called from config_get_global() to resolve
a recursive config definition, it should call config_get_global() in
return.

This caused incorrect highlighting of some settings as being overriden
in the Workflow Thresholds page, more specifically those configs
defined as having the same value as another one, e.g.
$g_update_bug_assign_threshold = '%handle_bug_threshold%'

The problem was fixed by adding an optional parameter to config_eval()
to specify if it is called in a global context or not.

Fixes 0013683

mod - core/config_api.php Diff File