diff --git a/webtools/bugzilla/editproducts.cgi b/webtools/bugzilla/editproducts.cgi
index 5e54813a2f2b..f976a569bb13 100755
--- a/webtools/bugzilla/editproducts.cgi
+++ b/webtools/bugzilla/editproducts.cgi
@@ -72,9 +72,10 @@ sub CheckProduct ($)
# Displays the form to edit a products parameters
#
-sub EmitFormElements ($$$$)
+sub EmitFormElements ($$$$$)
{
- my ($product, $description, $milestoneurl, $disallownew) = @_;
+ my ($product, $description, $milestoneurl, $disallownew,
+ $votesperuser) = @_;
$product = value_quote($product);
$description = value_quote($description);
@@ -97,6 +98,10 @@ sub EmitFormElements ($$$$)
print "
Closed for bug entry: | \n";
my $closed = $disallownew ? "CHECKED" : "";
print " | \n";
+
+ print "\n";
+ print " Maximum votes per person: | \n";
+ print " | \n";
}
@@ -167,7 +172,8 @@ my $localtrailer = "edit more products";
unless ($action) {
PutHeader("Select product");
- SendSQL("SELECT products.product,description,disallownew,COUNT(bug_id)
+ SendSQL("SELECT products.product,description,disallownew,
+ votesperuser,COUNT(bug_id)
FROM products LEFT JOIN bugs
ON products.product=bugs.product
GROUP BY products.product
@@ -176,11 +182,13 @@ unless ($action) {
print " Edit product ... | \n";
print " Description | \n";
print " Status | \n";
+ print " Votes per user | \n";
print " Bugs | \n";
print " Action | \n";
print "
";
while ( MoreSQLData() ) {
- my ($product, $description, $disallownew, $bugs) = FetchSQLData();
+ my ($product, $description, $disallownew, $votesperuser,
+ $bugs) = FetchSQLData();
$description ||= "missing";
$disallownew = $disallownew ? 'closed' : 'open';
$bugs ||= 'none';
@@ -188,7 +196,8 @@ unless ($action) {
print " $product | \n";
print " $description | \n";
print " $disallownew | \n";
- print " $bugs | \n";
+ print " $votesperuser | \n";
+ print " $bugs | \n";
print " Delete | \n";
print "";
}
@@ -218,7 +227,7 @@ if ($action eq 'add') {
print "