From bd603b3841d5ee038594b5e707af7d6557642874 Mon Sep 17 00:00:00 2001 From: Carlos Proensa Date: Thu, 10 Sep 2015 20:06:40 +0200 Subject: [PATCH] Automatic assignment: check for assignment change only 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 --- bug_update.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bug_update.php b/bug_update.php index 6f1e1be4e1..f288875d14 100644 --- a/bug_update.php +++ b/bug_update.php @@ -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' );