summaryrefslogtreecommitdiffstats
path: root/bug_form.pl
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-08-17 20:15:04 +0200
committerjustdave%syndicomm.com <>2001-08-17 20:15:04 +0200
commit10bb38466248d862c135be1ca2a995031f600c20 (patch)
tree94fd1a7aca78008c6d73d6c45e4351b0a8585bf1 /bug_form.pl
parent71e0de63259c504615f50932dbc08c53e8d13c00 (diff)
downloadbugzilla-10bb38466248d862c135be1ca2a995031f600c20.tar.gz
bugzilla-10bb38466248d862c135be1ca2a995031f600c20.tar.xz
Fix for bug 95743: the role-accessible checkboxes were getting cleared if a user with group access had to log in to make changes to a public bug.
Patch by Myk Melez <myk@mozilla.org> r= justdave@syndicomm.com
Diffstat (limited to 'bug_form.pl')
-rw-r--r--bug_form.pl12
1 files changed, 5 insertions, 7 deletions
diff --git a/bug_form.pl b/bug_form.pl
index 55128e8a7..c554cb0b0 100644
--- a/bug_form.pl
+++ b/bug_form.pl
@@ -380,13 +380,11 @@ if ($::usergroupset ne '0') {
}
}
- # If the user is a member of an active bug group, then they also have the
- # ability to determine whether or not the reporter, assignee, QA contact,
- # or users on the cc: list should be able to see the bug even when they
- # are not members of the groups to which the bug is restricted, so display
- # checkboxes that allow the user to make these determinations.
- SendSQL("SELECT bit FROM groups WHERE bit & $::usergroupset != 0 AND isbuggroup != 0 AND isactive = 1");
- if ( FetchSQLData() ) {
+ # If the bug is restricted to a group, display checkboxes that allow
+ # the user to set whether or not the reporter, assignee, QA contact,
+ # and cc list can see the bug even if they are not members of all
+ # groups to which the bug is restricted.
+ if ( $bug{'groupset'} != 0 ) {
# Determine whether or not the bug is always accessible by the reporter,
# QA contact, and/or users on the cc: list.
SendSQL("SELECT reporter_accessible , assignee_accessible ,