summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-09-15 06:50:07 +0200
committerjake%acutex.net <>2001-09-15 06:50:07 +0200
commit247a503301908fec8c6f4fb7c2e8038809710892 (patch)
tree0bbb5c134c3c100df93988a47ac248830660e72b /globals.pl
parent1e5a42d8225720233c9c698c48a4a733b3ad1841 (diff)
downloadbugzilla-247a503301908fec8c6f4fb7c2e8038809710892.tar.gz
bugzilla-247a503301908fec8c6f4fb7c2e8038809710892.tar.xz
Fix for bug 30731 - Reassigning closed bugs from the mass change page caused their status to be set to new.
r= myk@mozilla.org, zach@zachlipton.com
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index af3c26a3d..6dba9c720 100644
--- a/globals.pl
+++ b/globals.pl
@@ -1171,12 +1171,19 @@ sub GroupIsActive {
sub IsOpenedState {
my ($state) = (@_);
- if ($state =~ /^(NEW|REOPENED|ASSIGNED)$/ || $state eq $::unconfirmedstate) {
+ if (grep($_ eq $state, OpenStates())) {
return 1;
}
return 0;
}
+# This sub will return an array containing any status that
+# is considered an open bug.
+
+sub OpenStates {
+ return ('NEW', 'REOPENED', 'ASSIGNED', $::unconfirmedstate);
+}
+
sub RemoveVotes {
my ($id, $who, $reason) = (@_);