summaryrefslogtreecommitdiffstats
path: root/extensions/BMO
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-10-05 23:28:21 +0200
committerDavid Lawrence <dlawrence@mozilla.com>2011-10-05 23:28:21 +0200
commit084bca3f0c2e2825ce1c65f8d866eeb4cc3bdc90 (patch)
tree42b62ba9ff25f8c34de666eca0a6fc0b43111dab /extensions/BMO
parent1d44809edc5e460f5c5035ebb272f1fe776465cc (diff)
downloadbugzilla-084bca3f0c2e2825ce1c65f8d866eeb4cc3bdc90.tar.gz
bugzilla-084bca3f0c2e2825ce1c65f8d866eeb4cc3bdc90.tar.xz
More 4.2 porting fixes
Diffstat (limited to 'extensions/BMO')
-rw-r--r--extensions/BMO/Extension.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index c800ade3d..1bb83c977 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -263,12 +263,12 @@ sub bugmail_recipients {
if (@$diffs) {
# Changed bug
foreach my $ref (@$diffs) {
- my ($who, $whoname, $what, $when,
- $old, $new, $attachid, $fieldname) = (@$ref);
-
- if ($fieldname eq "bug_group") {
- _cc_if_special_group($old, $recipients);
- _cc_if_special_group($new, $recipients);
+ next if !(exists $ref->{'new'}
+ && exists $ref->{'old'}
+ && exists $ref->{'field_name'});
+ if ($ref->{'field_name'} eq "bug_group") {
+ _cc_if_special_group($ref->{'old'}, $recipients);
+ _cc_if_special_group($ref->{'new'}, $recipients);
}
}
} else {