]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 603314 - Unprivileged users cannot create bugs any more.
authorMarc Schumann <wurblzap@gmail.com>
Wed, 13 Oct 2010 16:38:21 +0000 (18:38 +0200)
committerMarc Schumann <wurblzap@gmail.com>
Wed, 13 Oct 2010 16:38:21 +0000 (18:38 +0200)
Adding a code comment post-checkin; see bug for details.

enter_bug.cgi

index f27b6207202b7704b05f5ccdb3246195fe284bbc..6cc174c315d4e2157a70651a457ad45be5416a69 100755 (executable)
@@ -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]);
 }