summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Shimono <shimono@bug-ja.org>2012-06-21 00:20:40 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-06-21 00:20:40 +0200
commitff5ce68630cc5744d77d9fd54be7df7ed7b26950 (patch)
treedc070ea58cb47bb410146ce3ff85c57ac74cfc62
parent89b41766cc47e26c59bfd95e351ab7767c394ab9 (diff)
downloadbugzilla-ff5ce68630cc5744d77d9fd54be7df7ed7b26950.tar.gz
bugzilla-ff5ce68630cc5744d77d9fd54be7df7ed7b26950.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 ed4cf9a04..34e57c90c 100755
--- a/email_in.pl
+++ b/email_in.pl
@@ -235,7 +235,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);
}