From cd75b25f3a0ee643a79fe8b805f94ce965eccc91 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 12 Nov 2012 23:48:57 +0800 Subject: Bug 810870: make needinfo honour requestee_cc preference --- extensions/Needinfo/Extension.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/extensions/Needinfo/Extension.pm b/extensions/Needinfo/Extension.pm index 701c2de18..c48593cff 100644 --- a/extensions/Needinfo/Extension.pm +++ b/extensions/Needinfo/Extension.pm @@ -60,7 +60,10 @@ sub bug_end_of_update { my $cgi = Bugzilla->cgi; my $params = Bugzilla->input_params; + # Set needinfo_done param to true so as to not loop back here return if $params->{needinfo_done}; + $params->{needinfo_done} = 1; + Bugzilla->input_params($params); # do a match if applicable Bugzilla::User::match_field({ @@ -161,12 +164,11 @@ sub bug_end_of_update { : $added; } $changes->{$field} = [$removed, $added]; + + # Adding a flag may result in CC'ing a user, call update to process + $bug->update() if $added; } } - - # Set needinfo_done param to true so as to not loop back here - $params->{needinfo_done} = 1; - Bugzilla->input_params($params); } __PACKAGE__->NAME; -- cgit v1.2.3-24-g4f1b