From 7ceb5abfb58940f80d7306b5fa51107134d448af Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Tue, 2 Nov 2010 17:21:09 -0700 Subject: 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 --- Bugzilla/Bug.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index d3f0023b8..e005b05c5 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}, -- cgit v1.2.3-24-g4f1b