From 93ed3ae8b3523b9e62597d1cc49de1f715648925 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Tue, 7 Mar 2006 05:42:09 +0000 Subject: Bug 282628: Move OpenStates and IsOpenedState out of globals.pl Patch By Max Kanat-Alexander r=wicked, a=myk --- process_bug.cgi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'process_bug.cgi') 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; } -- cgit v1.2.3-24-g4f1b