summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
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) = (@_);