diff options
author | terry%mozilla.org <> | 1999-10-12 02:14:30 +0200 |
---|---|---|
committer | terry%mozilla.org <> | 1999-10-12 02:14:30 +0200 |
commit | 73627e594d61e4606b57880cb35bdc50efb3e900 (patch) | |
tree | 329975a02b727ff925fdf1b4aae13b942bd2014c /globals.pl | |
parent | 76965a12c5f49e9a6bf99ea0f2d88ba0852bab3d (diff) | |
download | bugzilla-73627e594d61e4606b57880cb35bdc50efb3e900.tar.gz bugzilla-73627e594d61e4606b57880cb35bdc50efb3e900.tar.xz |
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.
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 1 |
1 files changed, 1 insertions, 0 deletions
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"); } } |