diff options
author | lpsolit%gmail.com <> | 2006-05-22 07:15:04 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-05-22 07:15:04 +0200 |
commit | 29b9cbc4bef47b2a4d8fce1ba917fe45d785ef40 (patch) | |
tree | ab2c9bc723057e40534a462ce13a23961f8f82d3 /Bugzilla | |
parent | 1c1c8c15d62b29a87c8f04aded86406828c2ecf8 (diff) | |
download | bugzilla-29b9cbc4bef47b2a4d8fce1ba917fe45d785ef40.tar.gz bugzilla-29b9cbc4bef47b2a4d8fce1ba917fe45d785ef40.tar.xz |
Bug 332522: Remove $::prodmaxvotes - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'Bugzilla')
-rwxr-xr-x | Bugzilla/Bug.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index c0063aa14..185e50b44 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -32,7 +32,7 @@ use strict; use vars qw(@legal_platform @legal_priority @legal_severity @legal_opsys @legal_bug_status - @settable_resolution %prodmaxvotes); + @settable_resolution); use CGI::Carp qw(fatalsToBrowser); @@ -526,8 +526,9 @@ sub use_votes { my ($self) = @_; return 0 if $self->{'error'}; - return Param('usevotes') - && $::prodmaxvotes{$self->{product}} > 0; + $self->{'prod_obj'} ||= new Bugzilla::Product({name => $self->{'product'}}); + + return Param('usevotes') && $self->{'prod_obj'}->votes_per_user > 0; } sub groups { |