aboutsummaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-23 09:03:14 +0000
committerterry%mozilla.org <>2000-01-23 09:03:14 +0000
commit04824af9663502bc5cc16583463c7d6819610fec (patch)
tree2e69a506a47e24d65b9784826abed24c17c74cb5 /globals.pl
parentc2491654291209345784c141700bad79603fe07b (diff)
downloadbugs-04824af9663502bc5cc16583463c7d6819610fec.tar
bugs-04824af9663502bc5cc16583463c7d6819610fec.tar.gz
bugs-04824af9663502bc5cc16583463c7d6819610fec.tar.bz2
bugs-04824af9663502bc5cc16583463c7d6819610fec.tar.xz
bugs-04824af9663502bc5cc16583463c7d6819610fec.zip
New email code wasn't notifying people of changes in state of
dependent bugs.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index 8d921f04d..5bc48e754 100644
--- a/globals.pl
+++ b/globals.pl
@@ -600,6 +600,19 @@ sub UserInGroup {
}
+# 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.
+
+sub IsOpenedState {
+ my ($state) = (@_);
+ if ($state =~ /^(NEW|REOPENED|ASSIGNED)$/) {
+ return 1;
+ }
+ return 0;
+}
+
+
sub RemoveVotes {
my ($id, $reason) = (@_);
ConnectToDatabase();