diff options
-rwxr-xr-x | enter_bug.cgi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index d85a9f060..4aa6a29d9 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -548,9 +548,8 @@ scalar(@statuses) || ThrowUserError('no_initial_bug_status'); # If the user has no privs... unless ($has_editbugs || $has_canconfirm) { # ... use UNCONFIRMED if available, else use the first status of the list. - my $bug_status = (grep { $_->name eq 'UNCONFIRMED' } @statuses) - ? 'UNCONFIRMED' : $statuses[0]->name; - @statuses = ($bug_status); + my ($unconfirmed) = grep { $_->name eq 'UNCONFIRMED' } @statuses; + @statuses = ($unconfirmed || $statuses[0]); } $vars->{'bug_status'} = \@statuses; |