aboutsummaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-12-17 23:31:51 +0000
committermkanat%bugzilla.org <>2009-12-17 23:31:51 +0000
commita73890d2ef8851ddae6b4991998824596a0f5644 (patch)
treea154cc5cd26842300bb0dd513ed7949c67682153 /enter_bug.cgi
parent3eb0b0d657efa47583d5bea699d8b9a62547fb6c (diff)
downloadbugs-a73890d2ef8851ddae6b4991998824596a0f5644.tar
bugs-a73890d2ef8851ddae6b4991998824596a0f5644.tar.gz
bugs-a73890d2ef8851ddae6b4991998824596a0f5644.tar.bz2
bugs-a73890d2ef8851ddae6b4991998824596a0f5644.tar.xz
bugs-a73890d2ef8851ddae6b4991998824596a0f5644.zip
Bug 162060: Remove the relationship between "votestoconfirm" and whether or not the UNCONFIRMED status is available, by adding a checkbox to enable the UNCONFIRMED status in editproducts.cgi.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 7c88f8d47..31e106959 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -520,8 +520,10 @@ my $initial_statuses = Bugzilla::Status->can_change_to();
@$initial_statuses = grep { $_->is_open } @$initial_statuses;
my @status = map { $_->name } @$initial_statuses;
-# UNCONFIRMED is illegal if votes_to_confirm = 0.
-@status = grep {$_ ne 'UNCONFIRMED'} @status unless $product->votes_to_confirm;
+# UNCONFIRMED is illegal if allows_unconfirmed is false.
+if (!$product->allows_unconfirmed) {
+ @status = grep {$_ ne 'UNCONFIRMED'} @status;
+}
scalar(@status) || ThrowUserError('no_initial_bug_status');
# If the user has no privs...