MantisBT: master-1.2.x 91a99d97

Author Committer Branch Timestamp Parent
dregad dregad master-1.2.x 2012-07-03 00:29 master-1.2.x 123c2c89
Affected Issues  0014443: Status changed to resolved and not to the desired value
Changeset

Add param to bug_resolve() to allow "resolution" to custom status

Function bug_resolve() sets the status to bug_resolved_status_threshold.
This behavior is fine with MantisBT's default status enum, but is
causing issues when using a custom target status that is

= $g_bug_resolved_status_threshold & < $g_bug_closed_status_threshold.

In this case, when changing status using the button on view.php, the
target status selected by the user is overriden by the value of
bug_resolved_status_threshold, resulting in incorrect behavior. The only
way to effectively reach the custom state is by editing the issue.

To address this, a new optional parameter $p_status is added to
bug_resolve(). To make the function call more logical, the signature was
modified: new parameter inserted in 3rd position after $p_resolution.

The function's phpdoc header has been completed.

Fixes 0014443

mod - bug_actiongroup.php Diff File
mod - bug_update.php Diff File
mod - core/bug_api.php Diff File