summaryrefslogtreecommitdiffstats
path: root/globals.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 /globals.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 'globals.pl')
-rw-r--r--globals.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index 81aa80e4e..e81363673 100644
--- a/globals.pl
+++ b/globals.pl
@@ -969,6 +969,17 @@ sub GroupExists {
return $count;
}
+# Determines whether or not a group is active by checking
+# the "isactive" column for the group in the "groups" table.
+# Note: This function selects groups by bit rather than by name.
+sub GroupIsActive {
+ my ($groupbit) = (@_);
+ ConnectToDatabase();
+ SendSQL("select isactive from groups where bit=$groupbit");
+ my $isactive = FetchOneColumn();
+ return $isactive;
+}
+
# Determines if the given bug_status string represents an "Opened" bug. This
# routine ought to be paramaterizable somehow, as people tend to introduce
# new states into Bugzilla.