Commit a4ef21ac authored by A. Shimono's avatar A. Shimono Committed by Frédéric Buclin

Bug 762785: Attachments are attached to the wrong comment when created by email_in.pl

r/a=LpSolit
parent 4c236f41
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment