summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authormkanat%kerio.com <>2006-03-07 06:42:09 +0100
committermkanat%kerio.com <>2006-03-07 06:42:09 +0100
commit93ed3ae8b3523b9e62597d1cc49de1f715648925 (patch)
tree691aa59ef033d8f23b920842558c68c52bae43f3 /process_bug.cgi
parenteb411e0d6a8848ff925ca13f42a04da1a7591284 (diff)
downloadbugzilla-93ed3ae8b3523b9e62597d1cc49de1f715648925.tar.gz
bugzilla-93ed3ae8b3523b9e62597d1cc49de1f715648925.tar.xz
Bug 282628: Move OpenStates and IsOpenedState out of globals.pl
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, a=myk
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 0e5ec9427..c2605afc2 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -500,7 +500,7 @@ sub CheckCanChangeField {
if ($field eq "canconfirm"
|| ($field eq "bug_status"
&& $oldvalue eq 'UNCONFIRMED'
- && IsOpenedState($newvalue)))
+ && is_open_state($newvalue)))
{
$PrivilegesRequired = 3;
return $UserInCanConfirmGroupSet;
@@ -785,7 +785,7 @@ sub ChangeStatus {
# confirmed or not
$::query .= "bug_status = CASE WHEN everconfirmed = 1 THEN " .
SqlQuote($str) . " ELSE 'UNCONFIRMED' END";
- } elsif (IsOpenedState($str)) {
+ } elsif (is_open_state($str)) {
# Note that we cannot combine this with the above branch - here we
# need to check if bugs.bug_status is open, (since we don't want to
# reopen closed bugs when reassigning), while above the whole point
@@ -811,7 +811,7 @@ sub ChangeStatus {
# This also relies on the fact that confirming and accepting have
# already called DoConfirm before this is called
- my @open_state = map(SqlQuote($_), OpenStates());
+ my @open_state = map(SqlQuote($_), BUG_STATE_OPEN);
my $open_state = join(", ", @open_state);
# If we are changing everconfirmed to 1, we have to take this change
@@ -2040,7 +2040,7 @@ foreach my $id (@idlist) {
}
if ($col eq 'bug_status'
- && IsOpenedState($old) ne IsOpenedState($new))
+ && is_open_state($old) ne is_open_state($new))
{
$check_dep_bugs = 1;
}