From c43c81eb2deebf98950fa064dbc1006c2553e7c1 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Wed, 20 Jun 2012 22:30:42 +0000 Subject: [PATCH] Bug 762785: Attachments are attached to the wrong comment when created by email_in.pl r/a=LpSolit git-svn-id: svn://10.0.0.236/trunk@263972 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/email_in.pl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 7c432645bf8..cabc72c75ea 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8266 \ No newline at end of file +8267 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/email_in.pl b/mozilla/webtools/bugzilla/email_in.pl index 3b684b0fcc3..53b5ac2a888 100755 --- a/mozilla/webtools/bugzilla/email_in.pl +++ b/mozilla/webtools/bugzilla/email_in.pl @@ -233,7 +233,8 @@ sub process_bug { my $added_comment; if (trim($fields{'comment'})) { - $added_comment = $bug->comments->[-1]; + # The "old" bug object doesn't contain the comment we just added. + $added_comment = Bugzilla::Bug->check($bug_id)->comments->[-1]; } return ($bug, $added_comment); }