From 7307c8c748e3245d65a25c016e7d92c6c7ae2aa4 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Tue, 5 Oct 2010 01:39:01 -0700 Subject: Bug 26074 - Ability to limit search by number of Comments r=mkanat, a=mkanat (module owner) --- Bugzilla/Comment.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Comment.pm') diff --git a/Bugzilla/Comment.pm b/Bugzilla/Comment.pm index 074f28dd6..b4f94e213 100644 --- a/Bugzilla/Comment.pm +++ b/Bugzilla/Comment.pm @@ -56,7 +56,10 @@ use constant UPDATE_COLUMNS => qw( use constant DB_TABLE => 'longdescs'; use constant ID_FIELD => 'comment_id'; -use constant LIST_ORDER => 'bug_when'; +# In some rare cases, two comments can have identical timestamps. If +# this happens, we want to be sure that the comment added later shows up +# later in the sequence. +use constant LIST_ORDER => 'bug_when, comment_id'; use constant VALIDATORS => { extra_data => \&_check_extra_data, -- cgit v1.2.3-24-g4f1b