summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-05-14 12:31:18 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-05-14 12:31:18 +0200
commit4d63354a757f487a391653a072661044d964e91f (patch)
tree0af043be5421d204a2f3be9d228f68cbacf2b693 /enter_bug.cgi
parent5fcfa9bb89f95849ffdb44df4f9e68a6032a7288 (diff)
downloadbugzilla-4d63354a757f487a391653a072661044d964e91f.tar.gz
bugzilla-4d63354a757f487a391653a072661044d964e91f.tar.xz
Bug 565790: Unprivileged users cannot create bugs anymore
r/a=mkanat
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi5
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;