MantisBT: master-1.2.x 08b00de0

Author Committer Branch Timestamp Parent
dregad dregad master-1.2.x 2012-04-04 04:44 master-1.2.x 974f363b
Affected Issues  0012129: workflow transition to status reopened is always checked for some status on workflow transition page
Changeset

Fix workflow transition to status reopened always checked

In manage_config_workflow_page.php, the code was always showing the
'reopened' states as checked regardless of the actual values stored in
the database.

This was due to storing the 'reopened' label within the array of values
used to build the table to display, which consequently were always set.

The code that initializes the labels has been removed from function
parse_workflow(), and the logic is now handled directly in show_flag(),
with globally initialized variables for better performance.

Fixes 0012129

mod - manage_config_workflow_page.php Diff File