summaryrefslogtreecommitdiffstats
path: root/bug_form.pl
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-06-06 12:16:47 +0200
committerjustdave%syndicomm.com <>2001-06-06 12:16:47 +0200
commit45b240a6124c67436cea18f90e4a3330ba819441 (patch)
tree58dca82545d919f126c15ca7c426a87da61a9cf1 /bug_form.pl
parent24bf6d11edd72edd34b5effa68aad9ca0984e913 (diff)
downloadbugzilla-45b240a6124c67436cea18f90e4a3330ba819441.tar.gz
bugzilla-45b240a6124c67436cea18f90e4a3330ba819441.tar.xz
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.pl9
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" : "";