diff options
author | justdave%bugzilla.org <> | 2005-01-30 13:22:27 +0100 |
---|---|---|
committer | justdave%bugzilla.org <> | 2005-01-30 13:22:27 +0100 |
commit | d9e238bc897b7614a81784dbebc69b9a155c9539 (patch) | |
tree | 53c77604819036f28ff7e833e3a6e2514d04883a /globals.pl | |
parent | c59641d038e2892db2c40047dde929a2207dd297 (diff) | |
download | bugzilla-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 'globals.pl')
-rw-r--r-- | globals.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/globals.pl b/globals.pl index 73f8ed82c..0c1ba852b 100644 --- a/globals.pl +++ b/globals.pl @@ -138,7 +138,7 @@ sub AppendComment { "VALUES($bugid, $whoid, $timestamp, " . SqlQuote($comment) . ", " . $privacyval . ", " . SqlQuote($work_time) . ")"); - SendSQL("UPDATE bugs SET delta_ts = $timestamp WHERE bug_id = $bugid"); + SendSQL("UPDATE bugs SET delta_ts = now() WHERE bug_id = $bugid"); } sub GetFieldID { @@ -1420,7 +1420,8 @@ sub RemoveVotes { SendSQL("SELECT SUM(vote_count) FROM votes WHERE bug_id = $id"); my $v = FetchOneColumn(); $v ||= 0; - SendSQL("UPDATE bugs SET votes = $v WHERE bug_id = $id"); + SendSQL("UPDATE bugs SET votes = $v, delta_ts = delta_ts " . + "WHERE bug_id = $id"); } } |