]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 252214: Allow max of zero votes per bug - Patch by Alfred Karl Kornel <kornel...
authorlpsolit%gmail.com <>
Tue, 7 Jun 2005 04:42:02 +0000 (04:42 +0000)
committerlpsolit%gmail.com <>
Tue, 7 Jun 2005 04:42:02 +0000 (04:42 +0000)
editproducts.cgi

index 8b80cb0d11f6b616c40ee3636b2c65ba311fb927..b3e8fe04173d7f3a5330916e271d28431d2c8779 100755 (executable)
@@ -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;
     }