summaryrefslogtreecommitdiffstats
path: root/votes.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-08-17 06:23:15 +0200
committermkanat%bugzilla.org <>2006-08-17 06:23:15 +0200
commitbc14d44121e7ffb9bef3ba421d7ff64c96f5f2d0 (patch)
treecbb21d4ed30050673436714ead31c6399b47d9d2 /votes.cgi
parentb0f0bf66946233f7ccfd10da68cbe1be645b8b16 (diff)
downloadbugzilla-bc14d44121e7ffb9bef3ba421d7ff64c96f5f2d0.tar.gz
bugzilla-bc14d44121e7ffb9bef3ba421d7ff64c96f5f2d0.tar.xz
Bug 341933: Make bug object creation much lighter
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
Diffstat (limited to 'votes.cgi')
-rwxr-xr-xvotes.cgi2
1 files changed, 1 insertions, 1 deletions
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};