From: Max Kanat-Alexander Date: Wed, 3 Nov 2010 00:21:09 +0000 (-0700) Subject: When inserting comments during Bug->update, make sure that the comment X-Git-Tag: bugzilla-4.1.1~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ceb5abfb58940f80d7306b5fa51107134d448af;p=thirdparty%2Fbugzilla.git When inserting comments during Bug->update, make sure that the comment timestamp is identical to the timestamp passed in to update(). https://bugzilla.mozilla.org/show_bug.cgi?id=590334 --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index d3f0023b86..e005b05c56 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -891,6 +891,9 @@ sub update { # Comments foreach my $comment (@{$self->{added_comments} || []}) { + # Override the Comment's timestamp to be identical to the update + # timestamp. + $comment->{bug_when} = $delta_ts; $comment = Bugzilla::Comment->insert_create_data($comment); if ($comment->{work_time}) { LogActivityEntry($self->id, "work_time", "", $comment->{work_time},