summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Shimono <shimono@bug-ja.org>2012-06-21 00:17:33 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-06-21 00:17:33 +0200
commita4ef21ac8165538bf9cfe7adb7272fda4cece5d6 (patch)
treec4a093cdd236aa946fe161c8fb4c0cb470ebcef9
parent4c236f418a7122cecd22c36c679a7b9faf5469f7 (diff)
downloadbugzilla-a4ef21ac8165538bf9cfe7adb7272fda4cece5d6.tar.gz
bugzilla-a4ef21ac8165538bf9cfe7adb7272fda4cece5d6.tar.xz
Bug 762785: Attachments are attached to the wrong comment when created by email_in.pl
r/a=LpSolit
-rwxr-xr-xemail_in.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/email_in.pl b/email_in.pl
index 3b684b0fc..53b5ac2a8 100755
--- a/email_in.pl
+++ b/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);
}