summaryrefslogtreecommitdiffstats
path: root/extensions/Needinfo
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-11-12 16:48:57 +0100
committerByron Jones <bjones@mozilla.com>2012-11-12 16:48:57 +0100
commitcd75b25f3a0ee643a79fe8b805f94ce965eccc91 (patch)
treed33d01941c942e63356ca6370523d7b9324c8990 /extensions/Needinfo
parent6f104db6a853915e312ca45359d6526c1a47d41f (diff)
downloadbugzilla-cd75b25f3a0ee643a79fe8b805f94ce965eccc91.tar.gz
bugzilla-cd75b25f3a0ee643a79fe8b805f94ce965eccc91.tar.xz
Bug 810870: make needinfo honour requestee_cc preference
Diffstat (limited to 'extensions/Needinfo')
-rw-r--r--extensions/Needinfo/Extension.pm10
1 files 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;