Different statuses between update and "Change status to"

Get help from other users here.

Moderators: Developer, Contributor

JulesA
Posts: 37
Joined: 11 Feb 2020, 10:01

Re: Different statuses between update and "Change status to"

Post by JulesA »

Explanation : once the bug is considered as Solved (please check your config to see what's the threshold), mantis allow users to close the bug (using "Modify" on a bug) no matter in which status it is. But, because it may not be in the workflow you defined, an error might occur. Thus, I wanted to disallow the users to use an action which was not defined in my workflow.

For those wondering how I solved it (modified bug_update_page.php) :

Code: Select all

print_status_option_list( 'status', $t_bug->status, access_can_close_bug( $t_bug ),
 $t_bug->project_id );
to

Code: Select all

print_status_option_list( 'status', $t_bug->status, false,
 $t_bug->project_id );
Post Reply