MantisBT: master-1.2.x 281fa5ef

Author Committer Branch Timestamp Parent
dregad dregad master-1.2.x 2013-09-26 04:57 master-1.2.x f4a4e903
Affected Issues  0010071: Manage Workflow Threshold page: 'Who can alter this value' is not saved
Changeset

Workflow thresholds page: fix display of 'who can alter'

When the current project is 'All projects' and the admin changes the
'Who can alter value' threshold (e.g. to 'manager'), the changes are saved
in the config table as expected, but not displayed back properly -
mantis shows the default value of 'administrator' (admin_site_threshold)
instead, giving the impression that the settings have not been saved;
another update will then overwrite the previously saved threshold back
to default.

The projects list in config_get_access() was not properly initialized,
set to an empty array when current project is ALL_PROJECTS.

Fixes 0010071

mod - core/config_api.php Diff File