summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-06-07 06:37:57 +0200
committerlpsolit%gmail.com <>2005-06-07 06:37:57 +0200
commit33ee1e885b771d2960fd6edaec7505058f2139fd (patch)
treeced26f4b269c0f08513b7492354c7a400b5efc24
parent546f39ba63c15ee2f8afca7e7f0f07ea7fddcf67 (diff)
downloadbugzilla-33ee1e885b771d2960fd6edaec7505058f2139fd.tar.gz
bugzilla-33ee1e885b771d2960fd6edaec7505058f2139fd.tar.xz
Bug 252214: Allow max of zero votes per bug - Patch by Alfred Karl Kornel <kornel.1@osu.edu> r=vladd a=justdave
-rwxr-xr-xeditproducts.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/editproducts.cgi b/editproducts.cgi
index cd124169f..229aa64d2 100755
--- a/editproducts.cgi
+++ b/editproducts.cgi
@@ -1252,8 +1252,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;
}