]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
When inserting comments during Bug->update, make sure that the comment
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Wed, 3 Nov 2010 00:21:09 +0000 (17:21 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Wed, 3 Nov 2010 00:21:09 +0000 (17:21 -0700)
timestamp is identical to the timestamp passed in to update().

https://bugzilla.mozilla.org/show_bug.cgi?id=590334

Bugzilla/Bug.pm

index d3f0023b86335439d1b27ad7e7042742c6bb611b..e005b05c5600008bec594e964cbf70d5b1171aee 100644 (file)
@@ -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},