From 341c0fc1c9e8f8c14655c9477fd119f1e0ccddc6 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 16 Feb 2012 18:37:42 -0500 Subject: Bug 721161 - Add to X-Bugzilla-Changed-Fields when a new attachment is created on a bug Changed from "Attachment Created" to "attachments.created" to match upstream --- Bugzilla/BugMail.pm | 4 ++-- extensions/TagNewUsers/Extension.pm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index efbba5215..62f04e5da 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -363,10 +363,10 @@ sub sendMail { my @changedfields = uniq map { $_->{field_name} } @display_diffs; - # Add Attachment Created to changedfields if one or more + # Add attachments.created to changedfields if one or more # comments contain information about a new attachment if (grep($_->type == CMT_ATTACHMENT_CREATED, @send_comments)) { - push(@changedfields, 'Attachment Created'); + push(@changedfields, 'attachments.created'); } my $vars = { diff --git a/extensions/TagNewUsers/Extension.pm b/extensions/TagNewUsers/Extension.pm index 4b78c7bc0..ab71eeda8 100644 --- a/extensions/TagNewUsers/Extension.pm +++ b/extensions/TagNewUsers/Extension.pm @@ -234,7 +234,7 @@ sub mailer_before_send { if ($bug_id && $changer_login - && $changed_fields =~ /Attachment Created/) + && $changed_fields =~ /attachments.created/) { my $changer = Bugzilla::User->new({ name => $changer_login }); if ($changer -- cgit v1.2.3-24-g4f1b