Skip to content

Commit

Permalink
Automatic assignment: check for assignment change only
Browse files Browse the repository at this point in the history
For 'auto_set_status_to_assigned', only change status when bug change
exclusively affects assignment.

A new assignement that is part of a status change is not applied now.
This is the behaviour from 1.2.x

Fixes #20076

Signed-off-by: Damien Regad <dregad@mantisbt.org>
  • Loading branch information
cproensa authored and dregad committed Dec 20, 2015
1 parent d012922 commit bd603b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bug_update.php
Expand Up @@ -365,6 +365,7 @@
# Handle automatic assignment of issues.
if( $t_existing_bug->handler_id === NO_USER &&
$t_updated_bug->handler_id !== NO_USER &&
$t_updated_bug->status == $t_existing_bug->status &&
$t_updated_bug->status < config_get( 'bug_assigned_status' ) &&
config_get( 'auto_set_status_to_assigned' ) ) {
$t_updated_bug->status = config_get( 'bug_assigned_status' );
Expand Down

0 comments on commit bd603b3

Please sign in to comment.