From c0df359943e8b746f02f5c43d25e5ffea99f8d19 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Wed, 9 Feb 2005 00:22:25 +0000 Subject: Bug 276838 : Eliminate use of $::unconfirmedstate Patch by Max Kanat-Alexander r=wurblzap a=justdave --- post_bug.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'post_bug.cgi') diff --git a/post_bug.cgi b/post_bug.cgi index 40111ff77..97f788dc6 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -158,7 +158,7 @@ if (UserInGroup("canedit") || UserInGroup("canconfirm")) { $::FORM{'bug_status'} ||= "NEW"; } else { # Default to UNCONFIRMED if we are using it, NEW otherwise - $::FORM{'bug_status'} = $::unconfirmedstate; + $::FORM{'bug_status'} = 'UNCONFIRMED'; SendSQL("SELECT votestoconfirm FROM products WHERE id = $product_id"); if (!FetchOneColumn()) { $::FORM{'bug_status'} = "NEW"; @@ -182,7 +182,7 @@ CheckFormField(\%::FORM, 'rep_platform', \@::legal_platform); CheckFormField(\%::FORM, 'bug_severity', \@::legal_severity); CheckFormField(\%::FORM, 'priority', \@::legal_priority); CheckFormField(\%::FORM, 'op_sys', \@::legal_opsys); -CheckFormField(\%::FORM, 'bug_status', [$::unconfirmedstate, 'NEW']); +CheckFormField(\%::FORM, 'bug_status', ['UNCONFIRMED', 'NEW']); CheckFormField(\%::FORM, 'version', $::versions{$product}); CheckFormField(\%::FORM, 'component', $::components{$product}); CheckFormField(\%::FORM, 'target_milestone', $::target_milestone{$product}); @@ -198,7 +198,7 @@ foreach my $field (@bug_fields) { } if (exists $::FORM{'bug_status'} - && $::FORM{'bug_status'} ne $::unconfirmedstate) + && $::FORM{'bug_status'} ne 'UNCONFIRMED') { push(@used_fields, "everconfirmed"); $::FORM{'everconfirmed'} = 1; -- cgit v1.2.3-24-g4f1b