diff options
author | justdave%syndicomm.com <> | 2001-08-17 18:15:04 +0000 |
---|---|---|
committer | justdave%syndicomm.com <> | 2001-08-17 18:15:04 +0000 |
commit | 10bb38466248d862c135be1ca2a995031f600c20 (patch) | |
tree | 94fd1a7aca78008c6d73d6c45e4351b0a8585bf1 /bug_form.pl | |
parent | 71e0de63259c504615f50932dbc08c53e8d13c00 (diff) | |
download | bugs-10bb38466248d862c135be1ca2a995031f600c20.tar bugs-10bb38466248d862c135be1ca2a995031f600c20.tar.gz bugs-10bb38466248d862c135be1ca2a995031f600c20.tar.bz2 bugs-10bb38466248d862c135be1ca2a995031f600c20.tar.xz bugs-10bb38466248d862c135be1ca2a995031f600c20.zip |
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.pl | 12 |
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 , |