summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/Extension.pm
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-02-13 16:36:05 +0100
committerByron Jones <bjones@mozilla.com>2012-02-13 16:36:05 +0100
commit88e0ac4cb8bd8932005341e47ee7310a956366d7 (patch)
treea5b6b0a2d8a430b2334b560d1edf767445486d2b /extensions/BMO/Extension.pm
parent40f3f69f9abc0c8cd3e0b4f6fbb445227e7fd370 (diff)
downloadbugzilla-88e0ac4cb8bd8932005341e47ee7310a956366d7.tar.gz
bugzilla-88e0ac4cb8bd8932005341e47ee7310a956366d7.tar.xz
Bug 725923: backport bug 663835 to extend test coverage to extensions
Diffstat (limited to 'extensions/BMO/Extension.pm')
-rw-r--r--extensions/BMO/Extension.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index e8b8e5173..3de85dbec 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -302,9 +302,10 @@ sub bugmail_recipients {
if (@$diffs) {
# Changed bug
foreach my $ref (@$diffs) {
- my ($who, $whoname, $what, $when,
- $old, $new, $attachid, $fieldname) = (@$ref);
-
+ my $old = $ref->{old};
+ my $new = $ref->{new};
+ my $fieldname = $ref->{field_name};
+
if ($fieldname eq "bug_group") {
_cc_if_special_group($old, $recipients);
_cc_if_special_group($new, $recipients);