MantisBT: master 9eb915c3

Author Committer Branch Timestamp Parent
cproensa dregad master 2015-11-03 13:48 master 770df68e
Affected Issues  0020256: Don't show reopen button if status change is not allowed by workflow
Changeset

Check workflow prior to reopening bug

Add a check to access_can_reopen_bug() to ensure the reopen status is
reachable by the current workflow configuration. If not, return false.

Previously, the reopen operation would fail anyway when the status is
changed. With this early check, failure is detected before the action is
made.

A direct benefit from this is that the "reopen" button is not shown to
the user if the action is not possible.

Fixes 0020256

Signed-off-by: Damien Regad dregad@mantisbt.org

mod - core/access_api.php Diff File