diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-11-03 01:21:09 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-11-03 01:21:09 +0100 |
commit | 7ceb5abfb58940f80d7306b5fa51107134d448af (patch) | |
tree | 6a26f8dfb0aae980f979d33b0f49f6226a3f4220 /Bugzilla | |
parent | 6fbfafbbec8ada22dde6903d0e02f9d3876fa1c1 (diff) | |
download | bugzilla-7ceb5abfb58940f80d7306b5fa51107134d448af.tar.gz bugzilla-7ceb5abfb58940f80d7306b5fa51107134d448af.tar.xz |
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
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Bug.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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}, |