summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-06-25 21:10:28 +0200
committerlpsolit%gmail.com <>2005-06-25 21:10:28 +0200
commit951c040a0968a02740464e359a9bfd3c75a0e4cc (patch)
tree3ce61a16ecd251e5b042aca5d0c1183e67df3e48 /buglist.cgi
parent05cc6289d00b21e12d4d59282384b8729a5c2b57 (diff)
downloadbugzilla-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-xbuglist.cgi10
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';
+ }
}
}