From bc14d44121e7ffb9bef3ba421d7ff64c96f5f2d0 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 17 Aug 2006 04:23:15 +0000 Subject: Bug 341933: Make bug object creation much lighter Patch By Max Kanat-Alexander r=LpSolit, a=justdave --- votes.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'votes.cgi') diff --git a/votes.cgi b/votes.cgi index 880b69a0d..a3b73f008 100755 --- a/votes.cgi +++ b/votes.cgi @@ -267,7 +267,7 @@ sub record_votes { # XXX - We really need a $bug->product() method. foreach my $bug_id (@buglist) { my $bug = new Bugzilla::Bug($bug_id); - my $prod = $bug->{'product'}; + my $prod = $bug->product; $products{$prod} ||= new Bugzilla::Product({name => $prod}); $prodcount{$prod} ||= 0; $prodcount{$prod} += $votes{$bug_id}; -- cgit v1.2.3-24-g4f1b