diff options
author | mkanat%bugzilla.org <> | 2009-12-18 00:31:51 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-12-18 00:31:51 +0100 |
commit | a73890d2ef8851ddae6b4991998824596a0f5644 (patch) | |
tree | a154cc5cd26842300bb0dd513ed7949c67682153 /enter_bug.cgi | |
parent | 3eb0b0d657efa47583d5bea699d8b9a62547fb6c (diff) | |
download | bugzilla-a73890d2ef8851ddae6b4991998824596a0f5644.tar.gz bugzilla-a73890d2ef8851ddae6b4991998824596a0f5644.tar.xz |
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-x | enter_bug.cgi | 6 |
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... |