View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0020256 | mantisbt | bugtracker | public | 2015-11-03 19:31 | 2016-06-12 00:42 |
Reporter | cproensa | Assigned To | cproensa | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.0-beta.3 | ||||
Target Version | 1.3.0-rc.2 | Fixed in Version | 1.3.0-rc.2 | ||
Summary | 0020256: Don't show reopen button if status change is not allowed by workflow | ||||
Description | When the status defined for reopened status is not allowed by workflow configuration, the button for reopening an issue should not be displayed. Currently, in that situation, the system shows an error: Invalid value for field "Status". | ||||
Tags | No tags attached. | ||||
MantisBT: master 9eb915c3 2015-11-03 13:48 Committer: dregad Details Diff |
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> |
Affected Issues 0020256 |
|
mod - core/access_api.php | Diff File |