View Issue Details

IDProjectCategoryView StatusLast Update
0004874mantisbtbugtrackerpublic2005-04-18 10:31
Reportermgerben Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.1 
Fixed in Version1.0.0a1 
Summary0004874: Assign to (users) fails from the View_all_bug_page.php Issues screen - I found out why, too.
Description

When I'm in the view_all_bug_page.php screen, I want to assign one or more issues to a specific user.
The setting 'auto_set_status_to_assigned' is OFF.
I have also defined a workflow without states pointing to themselves.

It's caused by the check of the workflow, even when the auto_set_status_to_assigned is OFF.

Additional Information

In this case, the 'bug_check_workflow' on line 88 fails, because line 83 made sure that the current state and the requested new state are the same - and I have no circular references in my states.

So when I assign the bug to a person using the view_all_bug_page-screen my bug goes from, say, ASSIGNED to ASSIGNED, and this is not a valid state-transition, according to the workflow.

I fixed it like this, my new line 88 checks if it should change the status, and if it doesn't, it skips the bug_check_workflow (since there is no change in status, there is no flow to check).

                    if ( access_has_bug_level( $t_threshold , $t_bug_id, $f_assign ) &&
                             access_has_bug_level( config_get( 'handle_bug_threshold' ), $t_bug_id ) &&
                                    ( OFF == config_get( 'auto_set_status_to_assigned' ) || bug_check_workflow($t_status, $t_assign_status ))       ) {
                            bug_assign( $t_bug_id, $f_assign );
                    } else {
                            if ( bug_check_workflow($t_status, $t_assign_status ) ) {
                                    $t_failed_ids[$t_bug_id] = lang_get( 'bug_actiongroup_access' );
                            } else {
                                    $t_failed_ids[$t_bug_id] = lang_get( 'bug_actiongroup_status' );
                            }
                    }
                    break;
TagsNo tags attached.

Activities

thraxisp

thraxisp

2005-01-09 13:52

reporter   ~0008902

Fixed in CVS. Fixed workflow check to allow not changing an issue's status.