From 5d516a6ae2f021d2e276a842c24dff74d3448c45 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 10 Nov 2009 01:36:02 +0000 Subject: Bug 472217: Create a Bugzilla::Comment object and eliminate GetComments Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- process_bug.cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index 36091b892..504fcacc3 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -168,8 +168,7 @@ if (defined $cgi->param('delta_ts') $vars->{'start_at'} = $cgi->param('longdesclength'); # Always sort midair collision comments oldest to newest, # regardless of the user's personal preference. - $vars->{'comments'} = Bugzilla::Bug::GetComments($first_bug->id, - "oldest_to_newest"); + $vars->{'comments'} = $first_bug->comments({ order => "oldest_to_newest" }); $vars->{'bug'} = $first_bug; # The token contains the old delta_ts. We need a new one. $cgi->param('token', issue_hash_token([$first_bug->id, $first_bug->delta_ts])); -- cgit v1.2.3-24-g4f1b