Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #16408: config_eval() fails on configs that reference array values
The $g_update_bug_assign_threshold is set to '%handle_bug_threshold%'. If the value of $g_handle_bug_threshold is set to an array instead of a string/int, a system notice is generated that array to string conversion is done in config_eval(). The fix is to detect the direct assignment case and not use a string replace, but use normal assignment. This will make it work for complex types like arrays. We still don't support $g_x = '%y%_aaa' where $g_y is not a string or int, but that shouldn't be an issue. Signed-off-by: Damien Regad <dregad@mantisbt.org> Cherry-pick of 1ac581e; Victor's original commit was amended to follow coding guidelines.
- Loading branch information