diff options
author | travis%sedsystems.ca <> | 2005-02-09 01:22:25 +0100 |
---|---|---|
committer | travis%sedsystems.ca <> | 2005-02-09 01:22:25 +0100 |
commit | c0df359943e8b746f02f5c43d25e5ffea99f8d19 (patch) | |
tree | c6245cd227c142f81d5c136576af06189d132a32 /CGI.pl | |
parent | d286752d0525b9bf8e6617b332aa8b3638212fc3 (diff) | |
download | bugzilla-c0df359943e8b746f02f5c43d25e5ffea99f8d19.tar.gz bugzilla-c0df359943e8b746f02f5c43d25e5ffea99f8d19.tar.xz |
Bug 276838 : Eliminate use of $::unconfirmedstate
Patch by Max Kanat-Alexander <mkanat@kerio.com> r=wurblzap a=justdave
Diffstat (limited to 'CGI.pl')
-rw-r--r-- | CGI.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -251,13 +251,13 @@ sub CheckIfVotedConfirmed { "WHERE bugs.bug_id = $id AND products.id = bugs.product_id"); my ($votes, $status, $votestoconfirm, $everconfirmed) = (FetchSQLData()); my $ret = 0; - if ($votes >= $votestoconfirm && $status eq $::unconfirmedstate) { + if ($votes >= $votestoconfirm && $status eq 'UNCONFIRMED') { SendSQL("UPDATE bugs SET bug_status = 'NEW', everconfirmed = 1 " . "WHERE bug_id = $id"); my $fieldid = GetFieldID("bug_status"); SendSQL("INSERT INTO bugs_activity " . "(bug_id,who,bug_when,fieldid,removed,added) VALUES " . - "($id,$who,now(),$fieldid,'$::unconfirmedstate','NEW')"); + "($id,$who,now(),$fieldid,'UNCONFIRMED','NEW')"); if (!$everconfirmed) { $fieldid = GetFieldID("everconfirmed"); SendSQL("INSERT INTO bugs_activity " . |