Commit c4f408c9 authored by Marc Schumann's avatar Marc Schumann

Bug 603314 - Unprivileged users cannot create bugs any more.

Adding a code comment post-checkin; see bug for details.
parent 5b77afda
...@@ -545,6 +545,9 @@ scalar(@statuses) || ThrowUserError('no_initial_bug_status'); ...@@ -545,6 +545,9 @@ scalar(@statuses) || ThrowUserError('no_initial_bug_status');
unless ($has_editbugs || $has_canconfirm) { unless ($has_editbugs || $has_canconfirm) {
# ... use UNCONFIRMED if available, else use the first status of the list. # ... use UNCONFIRMED if available, else use the first status of the list.
my ($unconfirmed) = grep { $_->name eq 'UNCONFIRMED' } @statuses; my ($unconfirmed) = grep { $_->name eq 'UNCONFIRMED' } @statuses;
# Because of an apparent Perl bug, "$unconfirmed || $statuses[0]" doesn't
# work, so we're using an "?:" operator. See bug 603314 for details.
@statuses = ($unconfirmed ? $unconfirmed : $statuses[0]); @statuses = ($unconfirmed ? $unconfirmed : $statuses[0]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment