From: lpsolit%gmail.com <> Date: Tue, 7 Jun 2005 04:42:02 +0000 (+0000) Subject: Bug 252214: Allow max of zero votes per bug - Patch by Alfred Karl Kornel r=vladd a=justdave --- diff --git a/editproducts.cgi b/editproducts.cgi index 8b80cb0d11..b3e8fe0417 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -1080,8 +1080,8 @@ if ($action eq 'update') { CheckProduct($productold); my $product_id = get_product_id($productold); - if (!detaint_natural($maxvotesperbug) || $maxvotesperbug == 0) { - print "Sorry, the max votes per bug must be a positive integer."; + if (!detaint_natural($maxvotesperbug)) { + print "Sorry, the max votes per bug must be an integer >= 0."; PutTrailer($localtrailer); exit; }