summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorjustdave%bugzilla.org <>2005-01-30 13:22:27 +0100
committerjustdave%bugzilla.org <>2005-01-30 13:22:27 +0100
commitd9e238bc897b7614a81784dbebc69b9a155c9539 (patch)
tree53c77604819036f28ff7e833e3a6e2514d04883a /CGI.pl
parentc59641d038e2892db2c40047dde929a2207dd297 (diff)
downloadbugzilla-d9e238bc897b7614a81784dbebc69b9a155c9539.tar.gz
bugzilla-d9e238bc897b7614a81784dbebc69b9a155c9539.tar.xz
Backing out the checking from bug 257315 until it gets corrected. It prevents new bugs from being filed.
a=justdave
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl15
1 files changed, 7 insertions, 8 deletions
diff --git a/CGI.pl b/CGI.pl
index 4d7b34047..165e5216c 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -246,28 +246,27 @@ sub CheckIfVotedConfirmed {
my ($id, $who) = (@_);
PushGlobalSQLState();
SendSQL("SELECT bugs.votes, bugs.bug_status, products.votestoconfirm, " .
- " bugs.everconfirmed, NOW() " .
+ " bugs.everconfirmed " .
"FROM bugs, products " .
"WHERE bugs.bug_id = $id AND products.id = bugs.product_id");
- my ($votes, $status, $votestoconfirm, $everconfirmed, $now) = (FetchSQLData());
+ my ($votes, $status, $votestoconfirm, $everconfirmed) = (FetchSQLData());
my $ret = 0;
if ($votes >= $votestoconfirm && $status eq $::unconfirmedstate) {
- SendSQL("UPDATE bugs SET bug_status = 'NEW', everconfirmed = 1, " .
- "delta_ts = $now WHERE bug_id = $id");
+ 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,'$::unconfirmedstate','NEW')");
if (!$everconfirmed) {
$fieldid = GetFieldID("everconfirmed");
SendSQL("INSERT INTO bugs_activity " .
"(bug_id,who,bug_when,fieldid,removed,added) VALUES " .
- "($id,$who,$now,$fieldid,'0','1')");
+ "($id,$who,now(),$fieldid,'0','1')");
}
AppendComment($id, DBID_to_name($who),
- "*** This bug has been confirmed by popular vote. ***",
- 0, $now);
+ "*** This bug has been confirmed by popular vote. ***", 0);
$vars->{'type'} = "votes";
$vars->{'id'} = $id;