summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-08-17 04:23:15 +0000
committermkanat%bugzilla.org <>2006-08-17 04:23:15 +0000
commitbc14d44121e7ffb9bef3ba421d7ff64c96f5f2d0 (patch)
treecbb21d4ed30050673436714ead31c6399b47d9d2 /votes.cgi
parentBug 241195: Add a short text at the top of request.cgi explaining what the di... (diff)
downloadbugzilla-bc14d44121e7ffb9bef3ba421d7ff64c96f5f2d0.tar.gz
bugzilla-bc14d44121e7ffb9bef3ba421d7ff64c96f5f2d0.tar.bz2
bugzilla-bc14d44121e7ffb9bef3ba421d7ff64c96f5f2d0.zip
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};