diff options
author | terry%mozilla.org <> | 2000-01-23 10:03:14 +0100 |
---|---|---|
committer | terry%mozilla.org <> | 2000-01-23 10:03:14 +0100 |
commit | 04824af9663502bc5cc16583463c7d6819610fec (patch) | |
tree | 2e69a506a47e24d65b9784826abed24c17c74cb5 /globals.pl | |
parent | c2491654291209345784c141700bad79603fe07b (diff) | |
download | bugzilla-04824af9663502bc5cc16583463c7d6819610fec.tar.gz bugzilla-04824af9663502bc5cc16583463c7d6819610fec.tar.xz |
New email code wasn't notifying people of changes in state of
dependent bugs.
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 13 |
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(); |