From: Marc Schumann Date: Wed, 13 Oct 2010 16:37:16 +0000 (+0200) Subject: Bug 603314 - Unprivileged users cannot create bugs any more. X-Git-Tag: bugzilla-4.1.1~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4f408c9b70d1fbf169f60857a736d83bad66536;p=thirdparty%2Fbugzilla.git Bug 603314 - Unprivileged users cannot create bugs any more. Adding a code comment post-checkin; see bug for details. --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 3a2b87fad0..af37caf895 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]); }