diff options
author | lpsolit%gmail.com <> | 2005-06-25 21:10:28 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-06-25 21:10:28 +0200 |
commit | 951c040a0968a02740464e359a9bfd3c75a0e4cc (patch) | |
tree | 3ce61a16ecd251e5b042aca5d0c1183e67df3e48 /buglist.cgi | |
parent | 05cc6289d00b21e12d4d59282384b8729a5c2b57 (diff) | |
download | bugzilla-951c040a0968a02740464e359a9bfd3c75a0e4cc.tar.gz bugzilla-951c040a0968a02740464e359a9bfd3c75a0e4cc.tar.xz |
Bug 277454: Bugs in inactivated groups don't show padlocks on the buglist - Patch by Marc Schumann <wurblzap@gmail.com> r=LpSolit a=justdave
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/buglist.cgi b/buglist.cgi index 3070fbcec..65b0c4e2b 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -894,16 +894,16 @@ if (@bugidlist) { $dbh->sql_group_by('bugs.bug_id')); $sth->execute(); while (my ($bug_id, $min_membercontrol) = $sth->fetchrow_array()) { - $min_membercontrol{$bug_id} = $min_membercontrol; + $min_membercontrol{$bug_id} = $min_membercontrol || CONTROLMAPNA; } foreach my $bug (@bugs) { next unless defined($min_membercontrol{$bug->{'bug_id'}}); - if ($min_membercontrol{$bug->{'bug_id'}} == CONTROLMAPSHOWN - || $min_membercontrol{$bug->{'bug_id'}} == CONTROLMAPDEFAULT) { - $bug->{'secure_mode'} = 'manual'; - } elsif ($min_membercontrol{$bug->{'bug_id'}} == CONTROLMAPMANDATORY) { + if ($min_membercontrol{$bug->{'bug_id'}} == CONTROLMAPMANDATORY) { $bug->{'secure_mode'} = 'implied'; } + else { + $bug->{'secure_mode'} = 'manual'; + } } } |