From 73627e594d61e4606b57880cb35bdc50efb3e900 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Tue, 12 Oct 1999 00:14:30 +0000 Subject: Added a "votes" field to the bugs table, which caches the total number of votes that have been cast for that bug. This let me simplify the SQL in buglist.cgi, which makes things more efficient and fixes several strange bugs. --- globals.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'globals.pl') diff --git a/globals.pl b/globals.pl index ccb0e8167..ac18305e1 100644 --- a/globals.pl +++ b/globals.pl @@ -535,6 +535,7 @@ sub RemoveVotes { close SENDMAIL; } SendSQL("delete from votes where bug_id = $id"); + SendSQL("update bugs set votes = 0 where bug_id = $id"); } } -- cgit v1.2.3-24-g4f1b