From 45b240a6124c67436cea18f90e4a3330ba819441 Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Wed, 6 Jun 2001 10:16:47 +0000 Subject: 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 r= justdave@syndicomm.com --- bug_form.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bug_form.pl') 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" : ""; -- cgit v1.2.3-24-g4f1b