diff options
author | Marc Schumann <wurblzap@gmail.com> | 2010-10-13 18:37:16 +0200 |
---|---|---|
committer | Marc Schumann <wurblzap@gmail.com> | 2010-10-13 18:37:16 +0200 |
commit | c4f408c9b70d1fbf169f60857a736d83bad66536 (patch) | |
tree | b51bd1c17fbaed54b49924b58844f6b958b8afd5 | |
parent | 5b77afdafdc3d0f7fc6b1d5945c39b6730ecfc75 (diff) | |
download | bugzilla-c4f408c9b70d1fbf169f60857a736d83bad66536.tar.gz bugzilla-c4f408c9b70d1fbf169f60857a736d83bad66536.tar.xz |
Bug 603314 - Unprivileged users cannot create bugs any more.
Adding a code comment post-checkin; see bug for details.
-rwxr-xr-x | enter_bug.cgi | 3 |
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]); } |