diff options
author | 2001-06-06 10:16:47 +0000 | |
---|---|---|
committer | 2001-06-06 10:16:47 +0000 | |
commit | 45b240a6124c67436cea18f90e4a3330ba819441 (patch) | |
tree | 58dca82545d919f126c15ca7c426a87da61a9cf1 /bug_form.pl | |
parent | Landing Myk's patch for bug #71767 (diff) | |
download | bugzilla-45b240a6124c67436cea18f90e4a3330ba819441.tar.gz bugzilla-45b240a6124c67436cea18f90e4a3330ba819441.tar.bz2 bugzilla-45b240a6124c67436cea18f90e4a3330ba819441.zip |
Fix for bug 75482: adding the capability to deactivate a group without deleting it (prevent new bugs from being placed into that group, but don't remove the group restriction from bugs already in it).
Patch by Myk Melez <myk@mozilla.org>
r= justdave@syndicomm.com
Diffstat (limited to 'bug_form.pl')
-rw-r--r-- | bug_form.pl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bug_form.pl b/bug_form.pl index 0706ede99..7801f2754 100644 --- a/bug_form.pl +++ b/bug_form.pl @@ -368,7 +368,14 @@ print " if ($::usergroupset ne '0') { - SendSQL("select bit, description, (bit & $bug{'groupset'} != 0) from groups where bit & $::usergroupset != 0 and isbuggroup != 0 order by bit"); + SendSQL("select bit, description, (bit & $bug{'groupset'} != 0) " . + "from groups where bit & $::usergroupset != 0 " . + "and isbuggroup != 0 " . + # Include active groups as well as inactive groups to which + # the bug already belongs. This way the bug can be removed + # from an inactive group but can only be added to active ones. + "and (isactive = 1 or (bit & $bug{'groupset'} != 0)) " . + "order by bit"); while (MoreSQLData()) { my ($bit, $description, $ison) = (FetchSQLData()); my $check0 = !$ison ? " SELECTED" : ""; |