summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xenter_bug.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 3a2b87fad..af37caf89 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -545,6 +545,9 @@ scalar(@statuses) || ThrowUserError('no_initial_bug_status');
unless ($has_editbugs || $has_canconfirm) {
# ... use UNCONFIRMED if available, else use the first status of the list.
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]);
}