summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-11-03 01:21:09 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-11-03 01:21:09 +0100
commit7ceb5abfb58940f80d7306b5fa51107134d448af (patch)
tree6a26f8dfb0aae980f979d33b0f49f6226a3f4220
parent6fbfafbbec8ada22dde6903d0e02f9d3876fa1c1 (diff)
downloadbugzilla-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
-rw-r--r--Bugzilla/Bug.pm3
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},